upload_or_copy#

upload_or_copy(src_path: str, dst_uri: str, fs: rastervision.pipeline.file_system.file_system.FileSystem | None = None) None[source]#

Upload or copy a file.

If dst_uri is local, the file is copied. Otherwise, it is uploaded.

Parameters:
Raises:

NotWritableError if dst_uri cannot be written to

Return type:

None