summaryrefslogtreecommitdiffstats
path: root/combox/file.py
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-03-04 22:27:58 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-03-04 22:27:58 -0500
commita3f2d142280e83f31e5f418581fb44870cab4317 (patch)
tree9fc408bb1f1643e84caf7b2ef9493fafb4bb113f /combox/file.py
parenta76fa564e461c310360575c74dc8bfba3d1bda74 (diff)
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 (limited to 'combox/file.py')
-rw-r--r--combox/file.py2
1 files changed, 1 insertions, 1 deletions
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,