Skip to main content

upload_dir

Uploads a directory to a remote location and returns the remote URI.

def upload_dir(
dir_path: Path,
verify: bool = True,
prefix: str | None = None
) - > str

Uploads a directory to a remote location and returns the remote URI.

Parameters

NameTypeDescription
dir_pathPathThe directory path to upload.
verifybool = TrueWhether to verify the certificate for HTTPS requests.
prefix`strNone` = None

Returns

TypeDescription
strThe remote URI of the uploaded directory.