Directory$download

Directory$download(path=getwd(), overwrite=FALSE, max_results=NULL, progress=TRUE, max_parallelization=24) → void

Downloads files associated with the directory to the specified at path.

Parameters:

path : str, default getwd() The path of the directory to download files. Will automatically create the directory if it doesn't exist. If not specified, defaults to the current working directory.

overwrite : bool, default FALSE Whether to overwrite any existing files when downloading. If FALSE, will throw an error if a file with the same name already exists at the provided path, unless if the file is a duplicate.

max_results : int, default NULL If specified, will only download up to max_results files

progress : bool, default TRUE Whether to show progress bar.

max_parallelization : int, default 24 The maximum parallelization when downloading files. Uses connection pooling via the curl library, and generally uses minimal CPU resources. The actual parallelization will be dynamically applied to achieve maximum throughput; this number serves as the upper bound.

Returns:

void

Last updated

Was this helpful?