summaryrefslogtreecommitdiffstats
path: root/combox/events.py
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-03-06 08:32:20 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-03-06 08:32:20 -0500
commit2c7c011d68691ffe3aa7d308479e7204c2727617 (patch)
treedb2bb684809bf27fcb9959caefc4a6b13ac4281b /combox/events.py
parent1c494ddad4fbb99ddb94ba54e2e77ae01aceec06 (diff)
modded combox.file.node_path function.
It has a third argument (boolean) which tells whether `cb_path' (the first argument) is a file or not. Updated the test for node_path function + code wherever node_path was used. modified: combox/events.py modified: combox/file.py modified: tests/file_test.py
Diffstat (limited to 'combox/events.py')
-rw-r--r--combox/events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/combox/events.py b/combox/events.py
index 6b17dcf..d3d845a 100644
--- a/combox/events.py
+++ b/combox/events.py
@@ -130,7 +130,8 @@ class ComboxDirMonitor(LoggingEventHandler):
super(ComboxDirMonitor, self).on_created(event)
self.silo_update()
- file_node_path = node_path(event.src_path, self.config)
+ file_node_path = node_path(event.src_path, self.config,
+ not event.is_directory)
if event.is_directory and (not path.exists(file_node_path)):
# creates a corresponding directory at the node dirs.