path

path#

Tools for paths

Functions

find_files(names, root_paths[, ...])

Returns matching files recursively from a list of root paths.

get_archived_file_list(archive_path)

Get the list of all the files contained in an archive.

get_archived_path(archive_path, file_regex)

Get archived file path from inside the archive.

get_archived_rio_path(archive_path, file_regex)

Get archived file path from inside the archive, to be read with rasterio:

get_ext(file_path)

Get file extension from file path.

get_file_in_dir(directory, pattern_str[, ...])

Get one or all matching files (pattern + extension) from inside a directory.

get_filename(file_path[, other_exts])

Get file name (without extension) from file path, ie:

get_root_path()

Get the root path of the current disk:

is_cloud_path(path)

Determine whether the path corresponds to a file stored on the cloud or not.

is_path(path)

Determine whether the path corresponds to a file stored on the cloud or not.

is_writable(dir_path)

Determine whether the directory is writeable or not.

listdir_abspath(directory)

Get absolute path of all files in the given directory.

real_rel_path(raw_path, start)

Gives the real relative path from a starting folder.

to_abspath(raw_path[, create, ...])

Return the absolute path of the specified path and check if it exists