tlc.core.url_adapters.s3_url_adapter

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

Module Contents

Classes

Class

Description

S3UrlAdapterDirEntry

A directory entry for an S3UrlAdapter

S3UrlAdapter

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

API

class tlc.core.url_adapters.s3_url_adapter.S3UrlAdapterDirEntry(ls_info: dict[str, Any])

Bases: tlc.core.url_adapters.fsspec_url_adapter.FSSpecUrlAdapterDirEntry

A directory entry for an S3UrlAdapter

property name: str
property path: str
mtime() datetime.datetime

Get the last modification time of the file.

Raises:

AttributeError if the modification time is not available

Returns:

The modification time as a datetime

class tlc.core.url_adapters.s3_url_adapter.S3UrlAdapter

Bases: tlc.core.url_adapters.fsspec_url_adapter.FSSpecUrlAdapter

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

s3_scheme = None
s3_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