Debian Codegraph @

man/mark_dirs.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/paths.R
3 \name{mark_dirs}
4 \alias{mark_dirs}
5 \title{Mark some paths as directories}
6 \usage{
7 mark_dirs(x)
8 }
9 \arguments{
10 \item{x}{Character vector of paths to files and directories.}
11 }
12 \description{
13 Add a trailing backlash to a file path if this is a directory. This is useful
14 in messages to the console for example to quickly identify directories from
15 files.
16 }
17 \details{
18 If \code{x} is a vector of relative paths, directory test is done with path
19 relative to the current working dir. Use \code{\link[=in_dir]{in_dir()}} or use absolute
20 paths.
21 }
22 \examples{
23 mark_dirs(list.files(find.package("xfun"), full.names = TRUE))
24 }