print_fs: Print file structure

View source: R/print_fs.R

print_fsR Documentation

Print file structure

Description

Prints the directories and files of the given path.

Usage

print_fs(
  path = ".",
  depth = 2L,
  print = TRUE,
  return = FALSE,
  prefix = "",
  level = 0
)

Arguments

path

a folder path.

depth

a positive integer with the depth of the folder structure.

print

a boolean if TRUE (default), the file structure will be printed

return

a boolean if TRUE, the file structure is returned as a vector. If FALSE the return is NULL. The default value is FALSE.

prefix

internal character to indicate the indention of depth.

level

internal numeric to indicate the current depth.

Value

Either the file structure or NULL

Author(s)

Jakob Gepp

Examples


print_fs(path = ".")


STATWORX/helfRlein documentation built on Feb. 12, 2024, 2:21 a.m.