downloadToFile

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

fileName

The name of the file to download.

outputPath

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.

outputPath

The path to save the downloaded file to.

config

Optional configuration for the download.