splitPath: Split a path into components

View source: R/splitPath.R

splitPathR Documentation

Split a path into components

Description

The first normalized path is split on forward and backward slashes and its components returned as character vector. The drive or network home are extracted separately on windows systems and empty on all other systems.

Usage

splitPath(path)

Arguments

path

[character(1)]
Path to split as string

Value

named list: List with components “drive” (character(1) and “path” (character(n).


BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.

Related to splitPath in BBmisc...