CC-5679: Media Monitor: Uploading folder with tracks will erase organize folder itself

* Fixed problem where the "organize" folder would get deleted if you
  copied a directory into it. Would break FTP uploads on Pro.
This commit is contained in:
Albert Santoni 2014-01-31 13:20:10 -05:00
parent 2525c0dbd6
commit 8a6ac21e8c
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ def clean_empty_dirs(path):
#is run but before removedirs. (Dir is not empty and removedirs throws
#an exception in that case then.)
try:
if not os.listdir(d): os.removedirs(d)
if not os.listdir(d): os.rmdir(d)
except OSError:
pass