make.path.relative: Converts one absolute path into relative

Description Usage Arguments Value

Description

The algorithm produces a relative path, that addresses target.path from base.path using folder names and special name .. for parent folder.

Usage

1
make.path.relative(base.path, target.path, fsep = .Platform$file.sep)

Arguments

base.path

character string with starting directory.

fsep

Custom path separator. Defaults to .Platform$file.sep.

target

character string with target directory.

Value

Character string that represents a relative path that leads to target.path from base.path.


adamryczkowski/pathcat documentation built on May 10, 2019, 5:51 a.m.