summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--combox/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/combox/events.py b/combox/events.py
index fc0d932..71431c6 100644
--- a/combox/events.py
+++ b/combox/events.py
@@ -256,7 +256,7 @@ class NodeDirMonitor(LoggingEventHandler):
if event.is_directory:
# Delete corresponding directory under the combox directory.
rm_path(file_cb_path)
- else:
+ elif not event.is_directory and path.exists(file_cb_path):
# remove the corresponding file under the combox directory.
rm_path(file_cb_path)
# remove file info from silo.