datasets.list_files: Lists the files stored in a Foundry Dataset.

View source: R/datasets.R

datasets.list_filesR Documentation

Lists the files stored in a Foundry Dataset.

Description

Lists the files stored in a Foundry Dataset.

Usage

datasets.list_files(alias, regex = ".*")

Arguments

alias

The alias representing the Dataset.

regex

A regex used to filter files by path.

Value

The lists of file properties.

Examples

## Not run: 
# List all PDF files in a Dataset
all_files <- datasets.list_files("my_dataset", regex=".*\\.pdf")

# Get all file names
file_names <- sapply(all_files, function(x) x$path)

## End(Not run)


foundry documentation built on May 31, 2023, 6:05 p.m.