Databrary serves folder-scoped assets through signed URLs. This helper requests the signed link for a folder asset and streams the file to the specified directory.
Arguments
- vol_id
Integer. Volume identifier containing the folder. Default is 1.
- folder_id
Integer. Folder identifier within the volume. Default is 9807, the Materials folder for Volume 1.
- asset_id
Integer. Asset identifier within the folder. Default is 1, a demo video called 'counting_demo_video.mp4'.
- file_name
Optional character string. File name to use when saving the asset. Defaults to the API-provided file name.
- target_dir
Character string. Directory where the file will be saved. Default is
tempdir().- timeout_secs
Numeric. Timeout (seconds) applied to the download request. Default is
REQUEST_TIMEOUT.- vb
Show verbose feedback. Defaults to
options::opt("vb").- rq
An
httr2request object. Default isNULL, in which case a default authenticated request is generated.
