Create missing folders and get data frame with identifiers of all given folders
rb_drive_create_folders.Rd
Create missing folders and get data frame with identifiers of all given folders
Usage
rb_drive_create_folders(
folders,
parent_id,
relative_path = NULL,
project = NULL,
update = FALSE,
base_folder = "rbackupr",
cache = TRUE
)
Arguments
- folders
A character vector of folder names.
- parent_id
Identifier of parent folder, where the new folders are to be created.
- project
Defaults to NULL. Can be set once per session with `rb_get_project_name()`. If given, must be a character vector of length one: name of the project.
- update
Logical, defaults to FALSE. If TRUE, checks on Google Drive for newly updated files or folders, otherwise it assumes that only files and folders listed in cache exist online.
Examples
if (interactive()) {
rb_drive_create_folders(
folders = c("folder_a", "folder_b"),
parent_id = rb_get_project()
)
}