hard link single files into dirs to process.

This commit is contained in:
Clinton Hall 2014-07-18 23:31:50 +09:30
commit 982f46c8a9

View file

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