R/fs_path_pop.R
fs_path_pop.Rd
Stack-like pop operation for path names
fs_path_pop(path, depth = 1L)
[character] Paths.
character
[integer(1)] How many parts should be dropped? Default to 1. In this case the function behaves like basename(path).
integer(1)
basename(path)
A character vector.
Other file-system helpers: fs_dirname(), fs_drop_ext()
fs_dirname()
fs_drop_ext()