trim_paths: Trim a vector of filesystem paths.

View source: R/utils.R

trim_pathsR Documentation

Trim a vector of filesystem paths.

Description

Trim a vector of filesystem paths.

Usage

trim_paths(paths, dir = 0, char = 0)

Arguments

paths

vectors of filesystem paths.

dir

number of times to apply the base dirname function.

char

number of characters to trim from the end of each path. Note this is performed after the dir based trimming.

Value

a vector of trimmed paths.


spant documentation built on Nov. 20, 2025, 5:06 p.m.