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:
parent
2525c0dbd6
commit
8a6ac21e8c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue