# NOT RUN {
## get info about your "My Drive" root folder
drive_path()
drive_path("~/")
## determine if path 'abc' exists and list matching paths
drive_path_exists("abc")
drive_path("abc")
## be more specific: consider only folder(s) that match 'abc'
drive_path_exists("abc/")
drive_path("abc/")
## limit to files with your My Drive root folder as direct parent
drive_path("~/def")
## use the plural forms to query multiple paths at once
drive_paths_exist(c("abc", "def"))
drive_paths(c("abc", "def"))
# }
Run the code above in your browser using DataLab