Directory
class Directory
Constructors
Examples
dir <- redivis$table("table_ref")$to_directory()
print(dir$list()) # list files + directories within this directory
all_files <- dir$list(mode="files", recursive=True)
file <- dir$get("path/to/file.txt") # Will return None if doesn't exist
subdir <- dir$get("path/to/subdir")dir <- redivis$table("table_ref")$to_directory()
# Download all files to the provided path
dir$download("/download/path")
# dir$mount() behaves the same as dir$download() was called (all files appear on disk)
# However, this doesn't actually download the files until they're needed,
# and as such is much faster, particularly when all files may not need to be read.
dir$mount("/download/path")Attributes
Methods
Last updated
Was this helpful?

