Download Google Drive Files
download_googledrive_files.Rd
For a given Google Drive folder this function will find and download all files matching a given pattern.
Usage
download_googledrive_files(
key_path,
drive_path,
search_pattern,
MIME_type = NULL,
out_path
)
Arguments
- key_path
character path to Google authentication key
- drive_path
character The Google drive folder path
- search_pattern
character A search pattern for files in the Google drive
- MIME_type
character Google Drive file type, file extension, or MIME type.
- out_path
character The local file directory for files to be downloaded to
Details
Note: This relies on the googledrive::drive_ls()
function which uses a search function
and is not deterministic when recursively searching. Please pay attention to what is returned.