split_paths: Split Full Paths at Slashes into Parts

Description Usage Arguments Examples

View source: R/path.R

Description

Split Full Paths at Slashes into Parts

Usage

1
split_paths(paths, dbg = TRUE, use_fs = FALSE)

Arguments

paths

vector of character representing full file paths

dbg

if TRUE (default), a debug message is shown

use_fs

whether or not to simply use path_split. Defaults to FALSE

Examples

1
2
segments <- split_paths(c("path/to/file-1", "path/to/file-2"))
segments

KWB-R/kwb.file documentation built on Dec. 31, 2021, 8:15 p.m.