diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-09-12 23:19:10 -0400 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-09-12 23:19:10 -0400 |
commit | 30da59cd1ee1acf0018d6599983ff4a6fddb65f7 (patch) | |
tree | df9cb009cf198fdc912ce7767a3e49dcd9495d45 | |
parent | b0bd611fefa1813970c39cde004f0a1b5afd865f (diff) |
fix for bug #8.
-rw-r--r-- | combox/events.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/combox/events.py b/combox/events.py index f83e351..32bbc52 100644 --- a/combox/events.py +++ b/combox/events.py @@ -513,7 +513,9 @@ class NodeDirMonitor(LoggingEventHandler): file_cb_path = cb_path(event.src_path, self.config) - if event.is_directory: + if event.is_directory and path.exists(file_cb_path): + # This means the directory was deleted on a remote + # computer. with self.lock: self.silo.node_set('file_deleted', file_cb_path) num = self.silo.node_get('file_deleted', file_cb_path) |