Update for pathclass.Extension changes.

This commit is contained in:
voussoir 2020-02-03 20:25:23 -08:00
parent a5c8887f47
commit d5cd12000d

View file

@ -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: