From d3b1c7e59d3a783bf6e25fd09272146e31b5c0f2 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Wed, 11 Dec 2024 09:41:04 -0500 Subject: [PATCH] add caveat --- gcsfs/core.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcsfs/core.py b/gcsfs/core.py index f1e1d5da..e6b52f0f 100644 --- a/gcsfs/core.py +++ b/gcsfs/core.py @@ -115,8 +115,8 @@ def _location(): ------- valid http location """ - _emulator_location = os.getenv("STORAGE_EMULATOR_HOST", None) - if _emulator_location: + _emulator_location = os.getenv("STORAGE_EMULATOR_HOST", "") + if _emulator_location not in {"default", "", None}: if not any( _emulator_location.startswith(scheme) for scheme in ("http://", "https://") ): @@ -222,6 +222,10 @@ class GCSFileSystem(asyn.AsyncFileSystem): In the default case the cache is never expired. This may be controlled via the ``cache_timeout`` GCSFileSystem parameter or via explicit calls to ``GCSFileSystem.invalidate_cache``. + NOTE on "exclusive" mode: mode=="create"" (in pipe and put) and open(mode="xb") are supported on an + experimental basis. The test harness does not currently support this, so use at your + own risk. + Parameters ---------- project : string