CC-3016: Import files doesn't work on Debian(1.9.5, 2.0)

- adding comment
This commit is contained in:
James 2011-11-03 15:35:04 -04:00
parent a85f284296
commit a156548ba6
1 changed files with 3 additions and 0 deletions

View File

@ -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