cloud_drive_prep_bulk {cloudfs} | R Documentation |
Prepare Google Drive content dataframe to be used by bulk download/read functions
Description
cloud_drive_ls
returns a dataframe of contents of a Google
Drive folder. This dataframe has name
, type
and id
columns. name
may be either full names or short names (depending on full_names
parameter of cloud_drive_ls
), but names(name)
will always contain full
names. This function:
filters out folders
extracts
names(name)
intopath
column.informs about the size of files that are to be downloaded/read and asks for confirmation
Usage
cloud_drive_prep_bulk(
content,
what = c("read", "download"),
safe_size = 5e+07,
quiet = FALSE
)
Arguments
content |
(data.frame) Output of |
what |
What will be done with content, either "read" or "download". This affects only how messages will look. |
safe_size |
What is considered to be safe size in bytes to download in bulk. To show additional caution message in case if you accidentally run bulk reading on a folder with gigabytes of data. |
quiet |
All caution messages may be turned off by setting this parameter
to |
Value
Transformed content
dataframe.