File$download
File$download(path=getwd(), *, overwrite=FALSE) → str
Downloads the file to the specified path, or the current working directory if no path is specified.
If you are downloading multiple files from a table or query result, you'll see significantly better performance (due to parallelization) by calling Table$download_files or Query$download_files.
Parameters:
path
: str, default getwd()
The path for where to download the file. If the path represents a directory that already exists, or ends in a path separator (e.g., /
), the path is assumed to be a directory, and the file will be downloaded into that directory (using the name of the file on Redivis). If the path doesn't end in a directory, the path is assumed to include the name of the downloaded file. If the path specifies any (sub)directories that do not exist, they'll automatically be created. If no path is specified, the file is downloaded to the current working directory.
overwrite
: bool, default FALSE
Whether to overwrite any existing file if the same file already exists at the download path.
Returns:
str (the path of the downloaded file)
Examples
Last updated