CC-3016: Import files doesn't work on Debian(1.9.5, 2.0)
- adding comment
This commit is contained in:
parent
dc0b361b07
commit
b75935abc3
1 changed files with 3 additions and 0 deletions
|
@ -272,6 +272,9 @@ class AirtimeProcessEvent(ProcessEvent):
|
||||||
now = time.time()
|
now = time.time()
|
||||||
if now - t > 5:
|
if now - t > 5:
|
||||||
# check if file exist
|
# 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):
|
if os.path.exists(k):
|
||||||
# check if file is open
|
# check if file is open
|
||||||
command = "lsof "+k
|
command = "lsof "+k
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue