get_file_list: Get list of files with a directory on Google drive

Description Usage Arguments Value See Also Examples

View source: R/get_file_list.R

Description

Lists all files under a directory on Google drive folder

Usage

1
get_file_list(rootid = atlantisdrive::rootid, targetDir = NULL)

Arguments

rootid

Drive-id. The id to the root Atlantis Folder

targetDir

Character. Path to a directory. Default = NULL - returns all files in root

Value

A tibble containing file name details

name

Folder/filename

id

Drive id of folder/filename

drive_resource

list of 33 objects defind in [googledrive](drive_ls)

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# get list of files in the Scenario folder under the root
get_file_list()
get_file_list(targetDir = "Testing/Model1")
get_file_list(targetDir = "Scenario")
get_file_list(targetDir = "Scen")
get_file_list(targetDir = "ario")


## End(Not run)

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