Skip to content

path.rebase

starkos edited this page Apr 10, 2021 · 3 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Takes a path which is relative to one location and makes it relative to another location instead.

path.rebase("relative_path", "old_base", "new_base")

Parameters

relative_path is a file system path, specified relative to old_base, which is to be rebased.

new_base is the location from which it should be made relative.

Return Value

A relative path from new_base.

Availability

Premake 5.0 or later.

See Also

Clone this wiki locally