dir_tree: Print contents of directories in a tree-like format

View source: R/tree.R

dir_treeR Documentation

Print contents of directories in a tree-like format

Description

Print contents of directories in a tree-like format

Usage

dir_tree(path = ".", recurse = TRUE, ...)

Arguments

path

A path to print the tree from

recurse

If TRUE recurse fully, if a positive number the number of levels to recurse.

...

Arguments passed on to dir_ls

type

File type(s) to return, one or more of "any", "file", "directory", "symlink", "FIFO", "socket", "character_device" or "block_device".

recursive

(Deprecated) If TRUE recurse fully.

all

If TRUE hidden files are also returned.

fail

Should the call fail (the default) or warn if a file cannot be accessed.

glob

A wildcard aka globbing pattern (e.g. ⁠*.csv⁠) passed on to grep() to filter paths.

regexp

A regular expression (e.g. ⁠[.]csv$⁠) passed on to grep() to filter paths.

invert

If TRUE return files which do not match


fs documentation built on Oct. 30, 2024, 9:06 a.m.