mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-19 10:05:30 +01:00
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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user