gd_exists: Check if folder exists

Description Usage Arguments Value See Also Examples

View source: R/gd_exists.R

Description

Checks to see if folder is already present.

Usage

1
gd_exists(googledriveFolder, rootid)

Arguments

googledriveFolder

Character String. Path to folder on Google Drive in which to push data.

rootid

Drive-id. Root id on google drive in which googleDriveFolder is nested

Value

A list of two items. If googleDriveFolder is present, its id is returned with isfound = T. If googleDriveFolder is not present then the id of the parent folder is returned with isfound = F

id

Drive-id for either the parent or child folder

isfound

Boolean. Absence (F) or presence (T) of the target folder

See Also

Other atlantisdrive functions: get_file_list(), list_atlantisom_files(), list_core_files(), pull_from_drive(), push_to_drive()

Examples

1
2
3
4
## Not run: 
gd_exists(googledriveFolder="Testing/SampleRun", rootid=atlantisdrive::rootid)

## End(Not run)

andybeet/atlantisdrive documentation built on April 9, 2021, 1:49 p.m.