summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-10-10 11:17:12 +0200
committerAnton Khirnov <anton@khirnov.net>2023-10-10 11:17:12 +0200
commit9025b6e144d2be74ce65118c67e2592e86502a09 (patch)
tree9bf109065a72e4fefb44ef780e10290f6b29d2de
parentbf62039ea856dbe462966eeaf2039dbdde615e93 (diff)
Call remap on dirnames from os.walk() as well as filenames.HEADmaster
Strangely it includes symlinks that point to directories.
-rwxr-xr-xperm_offset.py2
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)