cc-4105: added wrapper around pyinotify. added some stubs and todos
This commit is contained in:
parent
493f93c425
commit
f044cd91e3
7 changed files with 119 additions and 6 deletions
|
@ -61,7 +61,11 @@ class Bootstrapper(Loggable):
|
|||
# need the correct watch channel signal to call delete
|
||||
if watch_dir in signal_by_path:
|
||||
dispatcher.send(signal=signal_by_path[watch_dir], sender=self, event=DeleteFile(f))
|
||||
os.remove(to_delete)
|
||||
# TODO : get rid of this, we should never delete files from
|
||||
# the FS even if they are deleted in airtime. Instead we
|
||||
# should put this file on a global ignore list until it's
|
||||
# re-added or something
|
||||
# os.remove(to_delete)
|
||||
deleted += 1
|
||||
else:
|
||||
self.logger.error("Could not find the signal corresponding to path: '%s'" % watch_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue