Skip to contents

split a path into ancestor paths recursively

Usage

split_path(path)

Arguments

path

path to split

Value

character vectors of ancestor paths

Examples

split_path("/home/someone/a/test/path.txt")
#> [[1]]
#> [1] "/home"                         "/home/someone"                
#> [3] "/home/someone/a"               "/home/someone/a/test"         
#> [5] "/home/someone/a/test/path.txt"
#>