From 09aa60cd59f704c44ec8e1e641729a04d985d052 Mon Sep 17 00:00:00 2001 From: Vadim Markovtsev Date: Tue, 16 Aug 2016 11:46:28 +0300 Subject: [PATCH] Fix listing large buckets --- jgscm/__init__.py | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jgscm/__init__.py b/jgscm/__init__.py index dc06e5d..dba1d9b 100644 --- a/jgscm/__init__.py +++ b/jgscm/__init__.py @@ -532,6 +532,8 @@ def _fetch(self, path, content=True): return True, None if bucket is None: return False, None + if bucket_path == "" and not content: + return True, None if bucket_path == "" or bucket_path.endswith("/"): if bucket_path != "": exists = bucket.blob(bucket_path).exists() diff --git a/setup.py b/setup.py index 12005ce..bee8722 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name="jgscm", description="Jupyter Google Cloud Storage ContentsManager", - version="0.1.1", + version="0.1.2", license="MIT", author="Vadim Markovtsev", author_email="vadim@sourced.tech",