tlc.core.url_adapters.file_url_adapter#

An adapter for resolving reads/writes to filepath URLs

Module Contents#

Classes#

Class

Description

FileUrlAdapter

An adapter for resolving reads/writes to filepath URLs

API#

class tlc.core.url_adapters.file_url_adapter.FileUrlAdapter#

Bases: tlc.core.url_adapter.UrlAdapterAsyncFromSync

An adapter for resolving reads/writes to filepath URLs

file_scheme = None#
file_protocol = None#
schemes() list[tlc.core.url.Scheme]#
read_string_content_from_url(url: tlc.core.url.Url) str#
read_binary_content_from_url(url: tlc.core.url.Url) bytes#
delete_url(url: tlc.core.url.Url) None#
make_dirs(url: tlc.core.url.Url, exist_ok: bool = False) None#
get_file_size(url: tlc.core.url.Url) int#
exists(url: tlc.core.url.Url) bool#
is_dir(url: tlc.core.url.Url) bool#
is_writable(url: tlc.core.url.Url) bool#
list_dir(url: tlc.core.url.Url) Iterator[tlc.core.url_adapter.UrlAdapterDirEntry]#