Let recursive brename also do directories.
This commit is contained in:
parent
09d3c576e6
commit
a5bfd69fa7
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ underscore = '_'
|
||||||
|
|
||||||
def brename(transformation, autoyes=False, recurse=False):
|
def brename(transformation, autoyes=False, recurse=False):
|
||||||
if recurse:
|
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:
|
else:
|
||||||
olds = [os.path.join(os.getcwd(), x) for x in os.listdir('.')]
|
olds = [os.path.join(os.getcwd(), x) for x in os.listdir('.')]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue