splitf: File Path Decomposition

View source: R/strings_utils.R

splitfR Documentation

File Path Decomposition

Description

Helper that will split file name into chunks

Usage

splitf(file = NULL)

Arguments

file

path to file

Value

a named vector with chunks of 'file'
dir: full path directory of 'file'
parent: first parent directory of 'file'
ext: 'file' extension without leading dot
short: 'file' with no extension nor dir
input: 'file' path as it was provided.


IFC documentation built on Sept. 14, 2023, 1:08 a.m.