tlc.core.url_adapters.gcs_url_adapter

An adapter for resolving reads/writes to URLs starting with gs://

Module Contents

Classes

Class

Description

GSUrlAdapterDirEntry

A directory entry for a GSUrlAdapter

GCSUrlAdapter

An adapter for resolving reads/writes to URLs starting with gs://

API

class tlc.core.url_adapters.gcs_url_adapter.GSUrlAdapterDirEntry(ls_info: dict[str, Any])

Bases: tlc.core.url_adapters.fsspec_url_adapter.FSSpecUrlAdapterDirEntry

A directory entry for a GSUrlAdapter

property name: str
property path: str
mtime() datetime.datetime
class tlc.core.url_adapters.gcs_url_adapter.GCSUrlAdapter

Bases: tlc.core.url_adapters.fsspec_url_adapter.FSSpecUrlAdapter

An adapter for resolving reads/writes to URLs starting with gs://

gs_scheme = None
gs_protocol = None
schemes() list[tlc.core.url.Scheme]
is_file_hierarchy_flat() bool
touch(url: tlc.core.url.Url) None

Update the last modified timestamp of a file to the current time. Creates the file if it doesn’t exist.

Parameters:

url – The URL of the file to touch