Checks to see if folder is already present.

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

Examples

if (FALSE) { gd_exists(googledriveFolder="Testing/SampleRun", rootid=atlantisdrive::rootid) }