synDownloadListFiles
synDownloadListFiles.RdDownload all files in the Synapse download list (cart) to a local directory.
Files are downloaded individually. The cart is not packaged into a zip because download lists can exceed 100 GB. Only successfully downloaded files are removed from the cart after the full pass completes, so interrupted runs are safely resumable.
Files that cannot be accessed or fail to download are left in the cart and recorded with an error value in the result manifest.
Usage
synDownloadListFiles(download_location=NULL, parallel=FALSE, max_concurrent=10L, synapse_client=NULL)Arguments
- download_location
(Optional[character]) Directory to download files to. Defaults to the current working directory.
- parallel
(logical) If TRUE, files are downloaded concurrently, up to max_concurrent at a time. If FALSE (default), files are downloaded sequentially.
- max_concurrent
(integer) Maximum number of files to download concurrently when parallel=TRUE. Defaults to 10. Has no effect when parallel=FALSE.
- synapse_client
(Optional[Synapse]) If not passed in, the last created instance from the Synapse class constructor will be used.
Value
Path to the result manifest CSV, which contains all original manifest columns plus path (local file path) and error (error message or empty string) columns.