diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-10-10 11:17:12 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-10-10 11:17:12 +0200 |
commit | 9025b6e144d2be74ce65118c67e2592e86502a09 (patch) | |
tree | 9bf109065a72e4fefb44ef780e10290f6b29d2de | |
parent | bf62039ea856dbe462966eeaf2039dbdde615e93 (diff) |
Strangely it includes symlinks that point to directories.
-rwxr-xr-x | perm_offset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perm_offset.py b/perm_offset.py index 189728c..0ed452c 100755 --- a/perm_offset.py +++ b/perm_offset.py @@ -66,6 +66,6 @@ for tgt in args.targets: remap_file(dirpath, args.src_start, args.dst_start, args.count, args.dry_run) - for fn in filenames: + for fn in dirnames + filenames: remap_file(os.path.join(dirpath, fn), args.src_start, args.dst_start, args.count, args.dry_run) |