combox

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

commit a3f2d142280e83f31e5f418581fb44870cab4317
parent a76fa564e461c310360575c74dc8bfba3d1bda74
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Wed,  4 Mar 2015 22:27:58 -0500

fixed combox.file.cb_path

instead of using `path.isfile' to check if the path is a shard file or
not, it is checked if the path endswidth 'shard.N' where `N' is a
number.

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

diff --git a/combox/file.py b/combox/file.py @@ -54,7 +54,7 @@ def cb_path(node_path, config): Returns abs. path of file (in combox dir.) given the node_path. """ - if path.isfile(node_path): + if node_path[:-1].endswith('shard'): # partition function is used to remove the `.shard.N' from the # file name. rel_file_path = relative_path(node_path,