
Last chance! 50% off unlimited learning
Sale ends in
list the files in cloud or locally - similar to list.files()
list_files(path = "", pattern = NULL, recursive = FALSE,
ignore.case = FALSE, full.names = TRUE,
data_source = flyio_get_datasource(),
bucket = flyio_get_bucket(data_source), check_region = FALSE)
the folder for which the files need to be listed
an optional regular expression. Only file path names that match the regular expression will be returned.
logical. Should the listing recurse into directories?
logical. Should pattern-matching be case-insensitive?
logical. Should the entire path be returned or only after the path inputed?
the name of the data source, gcs, s3 or local; if not set globally
the name of the bucket, if not set globally
logical. to check region for aws.s3
a vector of full file names
# NOT RUN {
# List files locally
list_files(path = tempdir(), data_source = "local")
# }
# NOT RUN {
# List files on S3
flyio_set_datasource("s3")
flyio_set_bucket("your-bucket-name")
list_files(path = "tests/", pattern = ".*csv")
# }
Run the code above in your browser using DataLab