fs_path_pop: Stack-like pop operation for path names

View source: R/fs_path_pop.R

fs_path_popR Documentation

Stack-like pop operation for path names

Description

Stack-like pop operation for path names

Usage

fs_path_pop(path, depth = 1L)

Arguments

path

[character]
Paths.

depth

[integer(1)]
How many parts should be dropped? Default to 1. In this case the function behaves like basename(path).

Value

A character vector.

See Also

Other file-system helpers: fs_dirname(), fs_drop_ext()


jakobbossek/re documentation built on Nov. 15, 2024, 1:42 a.m.