summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-03-06 08:47:07 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-03-06 08:47:07 -0500
commit27acc86045b457bd800b5203d97218c0197bfeea (patch)
treecb7d77947cdbeba1b47fe59eb7ee4d49a08013ea
parent59279bf453bf90c547b36e8555d942ecf833bb74 (diff)
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
-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.