list.files2: List full file paths with the file name as the name

View source: R/utils_file_io.R

list.files2R Documentation

List full file paths with the file name as the name

Description

List full file paths with the file name as the name

Usage

list.files2(path = ".", full.names = TRUE, ...)

Arguments

path

(character) dir path to files

full.names

a logical value. If TRUE, the directory path is prepended to the file names to give a relative file path. If FALSE, the file names (rather than paths) are returned.

...

Arguments passed on to base::list.files

pattern

an optional regular expression. Only file names which match the regular expression will be returned.

all.files

a logical value. If FALSE, only the names of visible files are returned (following Unix-style visibility, that is files whose name does not start with a dot). If TRUE, all file names will be returned.

recursive

logical. Should the listing recurse into directories?

ignore.case

logical. Should pattern-matching be case-insensitive?

include.dirs

logical. Should subdirectory names be included in recursive listings? (They always are in non-recursive ones).

no..

logical. Should both "." and ".." be excluded also from non-recursive listings?

Value

(named character)

See Also

Other file IO: col_types(), dep_read(), dep_write(), dir_fn(), dirs, ext(), file_fn(), is_filepath(), last_updated(), load_obj(), make_names(), mkpath(), move_files_to_folder(), needs_update(), object_fn(), object_write(), package_size(), write_dir_fn(), write_lines()

Examples

list.files2("~")

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.