From a5bfd69fa7b85c1ce52a04cc0614e652be711782 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 1 Feb 2020 16:39:18 -0800 Subject: [PATCH] Let recursive brename also do directories. --- brename.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brename.py b/brename.py index bce9cba..0128e08 100644 --- a/brename.py +++ b/brename.py @@ -29,7 +29,8 @@ underscore = '_' def brename(transformation, autoyes=False, recurse=False): if recurse: - olds = [x.absolute_path for x in spinal.walk_generator('.')] + spinal.walk_generator('.', yield_files=True, yield_directories=True) + olds = [x.absolute_path for x in walker] else: olds = [os.path.join(os.getcwd(), x) for x in os.listdir('.')]