split_path: Split a File Path into Components

View source: R/split_path.R

split_pathR Documentation

Split a File Path into Components

Description

This function converts a character scalar containing a valid file path into a character vector of path components (e.g. directories).

Usage

split_path(x, depth_first = TRUE)

Arguments

x

character scalar. Path to be processed.

depth_first

logical. Should path be returned depth first? Defaults to TRUE.

Value

Character vector of path components, depth first.


gtools documentation built on Nov. 20, 2023, 5:07 p.m.