combox

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

commit 8b6d506f932e1809a71593b5b951e7c74e898c8f
parent 6fb58d0cf2741b7edb6e92f576b8bcc744243095
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Fri, 16 Jan 2015 09:24:47 -0500

[bug fix] combox/file.py: fixed bug in move_shards function

the fix: the shards don't have to be renamed when the directory under
which they're located is renamed/moved.

Diffstat:
combox/file.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/combox/file.py b/combox/file.py @@ -136,6 +136,11 @@ def move_shards(src, dest, config): config: a dictionary containing configuration info about combox. """ + if path.basename(src) == path.basename(dest): + # this means the parent directory was rename, no the file + # itself! So we don't have to do anything. + return + nodes = get_nodedirs(config) src_rel_path = relative_path(src, config)