Wrapper around list.dirs()
but includes maxdepth
and pattern arguments and
removes full.names
argument, always return full names.
list_dirs(
path = ".",
full.names = TRUE,
recursive = FALSE,
maxdepth = 1,
pattern
)
Character vector of paths to matched directories.
Same as list.dirs()
.
Same as list.dirs()
.
Same as list.dirs()
.
Integer (default = 1
) maximum depth to search.
Optional character (default is missing) regex pattern match on directory name.