content_type_for_path
def content_type_for_path(path: str) -> strGuess a file’s content type from its extension.
Public because a caller uploading one file with AuraClient.upload_file needs
the same answer deploy_from_folder gives; guessing differently would store
the same file under two types.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
path |
str |
— | The file’s path; only its suffix is read. |
Returns
Section titled “Returns”A MIME type, falling back to application/octet-stream.