Paths

helpers for dealing with fsspec OpenFile

pado.io.paths.match_partial_paths_reversed(current_urlpaths, new_urlpaths, *, ignore_ambiguous=False, progress=False)[source]

match paths for re-assigning files

returns a new sequence of paths replacing current with new ones raises ValueError in case match is ambiguous

Return type:

Sequence[Union[str, os.PathLike[str], OpenFileLike]]

pado.io.paths.search_dataset(ds, glob, *, mode='rb')[source]

search for files in a pado dataset root path

pado.io.paths.get_dataset_fs(ds)[source]

return the dataset’s filesystem

Return type:

AbstractFileSystem