Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > path.rebase


path.rebase

The path.rebase function takes a relative path and makes it relative to a different location.

#!lua
path.rebase("path", "oldbase", "newbase")

Parameters

path is the relative path to conver. oldbase is the original base directory, from which path is relative. newbase is the new base directory, from where the resulting path should be relative.

Return Value

The rebased path.

Clone this wiki locally