print_directory_tree: Print Directory Tree

View source: R/strings.R

print_directory_treeR Documentation

Description

Print Directory Tree

Usage

print_directory_tree(
  target,
  root = "~",
  child,
  dir_only = FALSE,
  collapse = NULL,
  ...
)

Arguments

target

target directory path, relative to root

root

root directory, default is '~'

child

child files in target; is missing, then list all files

dir_only

whether to display directory children only

collapse

whether to concatenate results as one single string

...

pass to list.files when list all files

Value

Characters, print-friendly directory tree.


dipsaus documentation built on June 27, 2024, 5:10 p.m.