Strip a root file path from an absolute filename.
strip_root(root, filename)
root | character. The root path. |
---|---|
filename | character. The full file name. |
the stripped file path.
not_run({ stopifnot("test" == strip_root("foo/bar/test", "test")) })