From 907637a6336cdc300c600a9c814e005f00d700d9 Mon Sep 17 00:00:00 2001 From: Pedro Guridi Date: Tue, 17 Dec 2013 20:33:40 -0300 Subject: [PATCH] fixes #9, now works well with spaces in filenames --- dejavu/convert.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dejavu/convert.py b/dejavu/convert.py index 7a3592b..34ac0fe 100644 --- a/dejavu/convert.py +++ b/dejavu/convert.py @@ -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):