trimCommonPath: Remove any common leading path from a set of paths.

View source: R/trimCommonPath.R

trimCommonPathR Documentation

Remove any common leading path from a set of paths.

Description

Remove any common leading path from a set of paths.

Usage

trimCommonPath(files)

Arguments

files

character vector of full paths to files

Value

files, with any leading common path removed.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm

Examples

trimCommonPath(c("/A/B/C", "/A/B/D/E", "/A/B/F")) == c("C", "D/E", "F")


MotusWTS/motusServer documentation built on Aug. 8, 2024, 10:23 p.m.