commit 80ec3e8691c67c8b5f8a88184918df2298e83fe3
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2024-11-03T21:35:55Z |
| subject | reg-rename can also rename dirs |
commit 80ec3e8691c67c8b5f8a88184918df2298e83fe3
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2024-11-03T21:35:55Z
reg-rename can also rename dirs
---
python/reg-rename.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/python/reg-rename.py b/python/reg-rename.py
index 7c05b4e..c8a36b4 100755
--- a/python/reg-rename.py
+++ b/python/reg-rename.py
@@ -117,7 +117,8 @@ class RegReplace:
sys.stdout.write( "\033[K" ) # Clear line
sys.stdout.write( "%s ... %s" % ( bb[ bb_i ], root ) )
- actions = self._compile_actions( root, files )
+ actions = self._compile_actions( root, dirs )
+ actions.extend( self._compile_actions( root, files ) )
sys.stdout.write("\r") # Goto line start
sys.stdout.write( "\033[F" ) # Move up