split_path: Split paths into vectors of folders and files

Description Usage Arguments Value

Description

Split paths into vectors of folders and files

Usage

1
split_path(paths, drop = TRUE, ...)

Arguments

paths

A vector of paths

drop

If TRUE and paths is a single path, then a vector and not a list of vectors is returned.

...

Not used.

Value

Returns a list of character vectors, unless drop is TRUE in case a single character vectors is returned.


HenrikBengtsson/pathinfo documentation built on May 7, 2019, 3:57 a.m.