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

This commit is contained in:
rembo10
2012-06-18 22:38:34 +05:30
parent d5b8a90ae4
commit 755b5082c7

View File

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