download_or_copy#

download_or_copy(uri: str, target_dir: str, delete_tmp: bool = False, fs: rastervision.pipeline.file_system.file_system.FileSystem | None = None) str[source]#

Downloads or copies a file to a directory.

Downloads or copies URI into target_dir.

Parameters:
Returns:

the local path of file

Return type:

str