From 8a6ac21e8cb6167e06f0a3c662b09efb029db6bd Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Fri, 31 Jan 2014 13:20:10 -0500 Subject: [PATCH] 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. --- python_apps/media-monitor2/media/monitor/pure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/media-monitor2/media/monitor/pure.py b/python_apps/media-monitor2/media/monitor/pure.py index 8a808e1aa..f120f6e98 100644 --- a/python_apps/media-monitor2/media/monitor/pure.py +++ b/python_apps/media-monitor2/media/monitor/pure.py @@ -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