scandir: List files and directories

View source: R/scandir.R

scandirR Documentation

List files and directories

Description

Displays the content of the provided directory as an HTML list of links. Can display only certain files (e.g. those with a specific extension or prefix) using pattern matching. This function is somewhat equivalent to the PHP and Shell functions of the same name.

Usage

scandir(dir, pattern = NULL, type = c("ul", "ol"), ...)

Arguments

dir

path to the directory of interest

pattern

an optional regular expression. Only file names which match the regular expression will be returned (as in list.files on which scandir is based)

type

of list to produce: unordered (ul) or ordered(ol)

...

passed to list.files


jiho/yssr documentation built on Feb. 4, 2023, 7:48 p.m.