Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/dvc_objects/fs/implementations/gs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ def fs(self):
from gcsfs import GCSFileSystem

return GCSFileSystem(**self.fs_args)

@classmethod
def _strip_protocol(cls, path: str) -> str:
from fsspec.utils import infer_storage_options

return infer_storage_options(path)["path"]

def unstrip_protocol(self, path: str) -> str:
return "gs://" + path.lstrip("/")