Transform an absolute path to relative path in relation to given location

file_path_relative_to(path, org_relative_to, new_relative_to)

Arguments

path

Character string path.

org_relative_to

Character string path to which path is originally relative to.

new_relative_to

Character string path to which path is supposed to be relative to.

Value

Character string relative file path.

Note

Both path and relative_to must be in absolute form.