From 30da59cd1ee1acf0018d6599983ff4a6fddb65f7 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Sat, 12 Sep 2015 23:19:10 -0400 Subject: fix for bug #8. --- combox/events.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3