diff --git a/python_apps/media-monitor/airtimefilemonitor/airtimeprocessevent.py b/python_apps/media-monitor/airtimefilemonitor/airtimeprocessevent.py index e66425651..af8658c2a 100644 --- a/python_apps/media-monitor/airtimefilemonitor/airtimeprocessevent.py +++ b/python_apps/media-monitor/airtimefilemonitor/airtimeprocessevent.py @@ -272,6 +272,9 @@ class AirtimeProcessEvent(ProcessEvent): now = time.time() if now - t > 5: # check if file exist + # When whole directory is copied to the organized dir, + # inotify doesn't fire IN_CLOSE_WRITE, hench we need special way of + # handling those cases. if os.path.exists(k): # check if file is open command = "lsof "+k