From 80ec3e8691c67c8b5f8a88184918df2298e83fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Mon, 4 Nov 2024 05:35:55 +0800 Subject: [PATCH] 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