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
uriis local, return it. If itβs remote, we generate a path for it withindownload_dir.- Parameters
uri (str) β the URI of the file to be copied
download_dir (str) β path of the local directory in which files should be copied
fs (rastervision.pipeline.file_system.file_system.FileSystem | None) β if supplied, use fs instead of automatically chosen FileSystem for URI
- Returns
A local path.
- Return type