mirror of
https://github.com/correl/dejavu.git
synced 2024-11-23 11:09:52 +00:00
fixes #9, now works well with spaces in filenames
This commit is contained in:
parent
f3bdc34994
commit
907637a633
1 changed files with 1 additions and 3 deletions
|
@ -28,10 +28,8 @@ class Converter():
|
|||
for extension in extensions:
|
||||
for f in fnmatch.filter(files, "*.%s" % extension):
|
||||
p = os.path.join(dirpath, f)
|
||||
renamed = p.replace(" ", "_")
|
||||
os.rename(p, renamed)
|
||||
#print "Found file: %s with extension %s" % (renamed, extension)
|
||||
filepaths.append((renamed, extension))
|
||||
filepaths.append((p, extension))
|
||||
return filepaths
|
||||
|
||||
def convert(self, orig_path, from_format, to_format, output_folder):
|
||||
|
|
Loading…
Reference in a new issue