Directory$list
Last updated
Was this helpful?
List the contents of a given directory.
max_results : int, default NULL
If specified, will only list up to the specified number of files and/or directories
mode : "all" | "files" | "directories", default "all"
By default, this method will return a list of files and directories within the current directory. Specify an alternative mode to only list a given entity type.
recursive : bool, default FALSE
Whether to recursively crawl the directory tree and return all files and/or directories. If FALSE (the default), only entities directly in this directory will be returned.
dir <- redivis$table("table_ref")$to_directory()
print(dir$list()) # list files + directories within this directory
all_files <- dir$list(mode="files", recursive=TRUE)Last updated
Was this helpful?
Was this helpful?

