combox

split and encrypted files between online file storage providers
git clone git://git.ricketyspace.net/combox.git
Log | Files | Refs

commit 1a7f1f42d192beeb2056c0ca14d363255c491e14
parent a9082be0a03c11b46f6974b1b9476db9914055be
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Thu, 27 Aug 2015 10:01:40 -0400

combox/events.py: fixed a logical error in NodeDirMonitor.on_moved

Diffstat:
combox/events.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/combox/events.py b/combox/events.py @@ -348,7 +348,7 @@ class NodeDirMonitor(LoggingEventHandler): self.silo.node_rem(silo_node_dict, cb_filename) return elif (not self.shardp(event.src_path) and - self.shardp(event.src_path) and + self.shardp(event.dest_path) and path.exists(dest_cb_path) and not event.is_directory): # This is Dropbox specific :| @@ -357,6 +357,7 @@ class NodeDirMonitor(LoggingEventHandler): # being modified, so our previous assumption that it was # deleted was wrong, so we remove that information from # the silo. + cb_filename = dest_cb_path with self.lock: self.silo.node_rem('file_deleted', cb_filename) # Next watchdog detects that the shard was modified