From 27acc86045b457bd800b5203d97218c0197bfeea Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Fri, 6 Mar 2015 08:47:07 -0500 Subject: updated on_delete method in combox.events.NodeDirMonitor Now the method deletes the corresponding file in the combox directory only if has not already been deleted. modified: combox/events.py --- combox/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3