download To File
suspend fun Files.downloadToFile(fileName: String, outputPath: <Error class: unknown class>, config: DownloadFileConfig? = null)
Downloads a file from the API and streams it directly to a local file path.
Parameters
file Name
The name of the file to download.
output Path
The path to save the downloaded file to.
config
Optional configuration for the download.
suspend fun Files.downloadToFile(file: File, outputPath: <Error class: unknown class>, config: DownloadFileConfig? = null)
Downloads a file from the API and streams it directly to a local file path.
Parameters
file
The file to download.
output Path
The path to save the downloaded file to.
config
Optional configuration for the download.