Given paths and an integer depth, the function calculates dirname(...(...dirname(paths))), depth times.

fs_dirname(path, depth = 1L)

Arguments

path

[character]
Paths.

depth

[integer(1)]
Depth of the k-fold

Value

A character vector.

See also

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