Downloads all downloadable files from given Google Drive folder
and saves them to specified local directory. Files will have the same names.
Use googledrive::drive_download()
for downloading individual files.
Usage
gd_download_folder(
folder_url = gd_get_proj(),
dest_dir = "data/input",
files_from_subfolders = FALSE,
overwrite = TRUE
)
Note
As it would be very difficult to mirror the folder exactly,
if files_from_subfolders
is set to TRUE
, files from subfolders will be
saved in the same directory, not in the respective subdirectories.
Bear this in mind when naming files in GDrive subfolders so as to avoid naming conflicts.
See also
Other Workflow helpers:
draft_pdf()
,
manage_docx_header_logos()