split_path: Split a file path and return the nth piece(s)

Description Usage Arguments See Also

Description

Split a file path and return the nth piece(s)

Usage

1
split_path(path, n = 1, from = "end", ...)

Arguments

path

Vector of file paths.

n

Which part(s) to return.

from

One of ‘start’ or ‘end’. From which direction do we count the parts.

...

Arguments passed on to strsplitN.

See Also

Other string-utils: blanks, dup, pad, replace_ext, strip_ext, strsplitN, trim, wrap


gschofl/gsmisc documentation built on May 17, 2019, 8:52 a.m.