list_files: List "files" in file system or on S3

View source: R/download.R

list_filesR Documentation

List "files" in file system or on S3

Description

Delegates to base::list.files() for file system paths and mimics basic base::list.files() behavior for S3 paths.

Usage

list_files(
  path = ".",
  pattern = NULL,
  full.names = FALSE,
  recursive = FALSE,
  ignore.case = FALSE,
  ...
)

Arguments

path

File system path or S3 URL

pattern

Filter pattern (regex)

full.names

If set, return full path names rather than basenames

recursive

List files recursively

ignore.case

Ignore case for filter pattern

...

Forwarded to base::list.files() or aws.s3::get_bucket_df() for files and S3 respectively

Value

Character vector of file names


Paradigm4/revealcore documentation built on May 21, 2023, 9:57 a.m.