fix manual processing (TTM) when files in root dir.

This commit is contained in:
clinton-hall 2014-07-18 22:40:21 +09:30
commit 4e5d2b17be

View file

@ -519,7 +519,7 @@ def getDirs(section, subsection):
makeDir(newPath)
# move file to its new path
shutil.move(mediafile, newPath)
shutil.move(mediafile, os.path.join(newPath, os.path.split(mediafile)[1]))
removeEmptyFolders(path, removeRoot=False)