Update for pathclass.Extension changes.
This commit is contained in:
parent
a5c8887f47
commit
d5cd12000d
1 changed files with 1 additions and 3 deletions
|
@ -67,9 +67,7 @@ def fileprefix(
|
||||||
rename_pairs = []
|
rename_pairs = []
|
||||||
|
|
||||||
for (index, filepath) in enumerate(filepaths):
|
for (index, filepath) in enumerate(filepaths):
|
||||||
extension = filepath.extension
|
extension = filepath.extension.with_dot
|
||||||
if extension != '':
|
|
||||||
extension = '.' + extension
|
|
||||||
|
|
||||||
newname = format.format(prefix=prefix, index=index, extension=extension)
|
newname = format.format(prefix=prefix, index=index, extension=extension)
|
||||||
if filepath.basename != newname:
|
if filepath.basename != newname:
|
||||||
|
|
Loading…
Reference in a new issue