From 755b5082c72a09863a1dc159177a8d7af980cf55 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 18 Jun 2012 22:38:34 +0530 Subject: [PATCH] Possible fix for the 'moveFiles' function only moving one file over before getting stuck. Changes shutil.move(src,dest) to use a filename for the dest instead of the parent directory --- headphones/postprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 5a494cf1..571f4ea7 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -404,7 +404,7 @@ def moveFiles(albumpath, release, tracks): logger.warn('Error renaming %s: %s' % (files, e)) break try: - shutil.move(os.path.join(r, files), destination_path) + shutil.move(os.path.join(r, files), os.path.join(destination_path, files)) except shutil.Error, e: logger.warn('Error moving file %s: %s' % (files, e))