Directory.download
Directory.download([path, { maxResults, overwrite, maxParallelization, onProgress, signal }]) → Promise<string[]>
Downloads the directory's files, recreating its structure. Files that already exist with the same contents are skipped. Only available in Node.js.
Parameters:
path : string, optional
The directory to download into. Defaults to a directory named after this one (or after its table), in the current working directory.
maxResults : number, optional
The maximum number of files to download.
overwrite : boolean, default false
Whether to replace existing files whose contents differ.
maxParallelization : number, default 32
The number of files to download at once. Defaults to the maxParallelization configuration, if it's set.
onProgress : function, optional
Called with { bytesDownloaded, totalBytes, filesDownloaded, totalFiles } as files are downloaded.
signal : AbortSignal, optional
Returns: Promise<string[]>, the paths of the downloaded files.
Was this helpful?

