Skip to content

Commit

Permalink
add caveat
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Dec 11, 2024
1 parent 94bc52a commit d3b1c7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gcsfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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://")
):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d3b1c7e

Please sign in to comment.