R/utils.R
list_of_paths_to_basenames.Rd
Basenames are concatenated if there are multiple paths per input.
list_of_paths_to_basenames(paths)
paths | A list of character vectors representing file or url paths. |
---|
The basenames as a flattened character vector.
paths <- list('a/b.w', c('c/d.x', 'e/f.y'), 'g/h.z') list_of_paths_to_basenames(paths)#> [1] "b" "d, f" "h"