From a3f2d142280e83f31e5f418581fb44870cab4317 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Wed, 4 Mar 2015 22:27:58 -0500 Subject: 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. --- combox/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combox/file.py b/combox/file.py index 1e680c6..fe5c58e 100644 --- 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, -- cgit v1.2.3