Added lsof to check if file is locked
This commit is contained in:
parent
5b051aae32
commit
3dd5b2869d
4 changed files with 15 additions and 18 deletions
|
@ -1,5 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import time
|
||||
import media.monitor.pure as mmp
|
||||
import media.monitor.owners as owners
|
||||
from media.monitor.handler import ReportHandler
|
||||
|
@ -72,13 +71,9 @@ class Organizer(ReportHandler,Loggable):
|
|||
directory=d)
|
||||
return cb
|
||||
|
||||
time.sleep(0.02)
|
||||
|
||||
mmp.magic_move(event.path, new_path,
|
||||
after_dir_make=new_dir_watch(dirname(new_path)))
|
||||
|
||||
time.sleep(0.02)
|
||||
|
||||
# The reason we need to go around saving the owner in this ass
|
||||
# backwards way is bewcause we are unable to encode the owner id
|
||||
# into the file itself so that the StoreWatchListener listener can
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue