diff --git a/source-builder/sb/path.py b/source-builder/sb/path.py index 5f48d26..e3be0ce 100644 --- a/source-builder/sb/path.py +++ b/source-builder/sb/path.py @@ -96,7 +96,9 @@ def listdir(path): def exists(paths): def _exists(p): - return os.path.basename(p) in listdir(dirname(p)) + if '/' not in host(p): + p = shell(join(os.getcwd(), host(p))) + return basename(p) in ['.'] + listdir(dirname(p)) if type(paths) == list: results = []