tlcurl.url_adapters.gcs_url_adapter
¶
An adapter for resolving reads/writes to URLs starting with gs://
Module Contents¶
Classes¶
Class |
Description |
---|---|
A directory entry for a GSUrlAdapter |
|
An adapter for resolving reads/writes to URLs starting with |
API¶
- class GSUrlAdapterDirEntry( )¶
Bases:
tlcurl.url_adapter.UrlAdapterDirEntry
A directory entry for a GSUrlAdapter
- class GCSUrlAdapter¶
Bases:
tlcurl.url_adapter.UrlAdapterAsyncFromSync
An adapter for resolving reads/writes to URLs starting with
gs://
- gs_scheme = None¶
- gs_protocol = None¶
- make_dirs( ) None ¶
Create a leaf directory and all intermediate ones synchronously
For GCS, this is a no-op since GCS has a flat namespace. We only create a marker file if the directory doesn’t exist.
- list_dir(
- url: Url,
List the entries belonging to the directory at the given URL synchronously
- is_writable(
- url: Url,
Checks if a Url is writable.
Actual implementation checks if the bucket is writable.
- stat(
- url: Url,
Get metadata about a file or directory at the given URL synchronously