get_local_path#

get_local_path(uri: str, download_dir: str, fs: rastervision.pipeline.file_system.file_system.FileSystem | None = None) str[source]#

Return the path where a local copy of URI should be stored.

If uri is local, return it. If it’s remote, we generate a path for it within download_dir.

Parameters
Returns

A local path.

Return type

str