Remove unnecessary dot-dot from (relative) paths.

Remove unnecessary dot-dot from (relative) paths.

aux_simplifypath(path)

Arguments

path

Path character string

Value

string with simplified path (no .. within path)

See also

Examples

aux_simplifypath("this/does/not/../work")
#> [1] "this/does/work"