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

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


path.getrelative

The path.getrelative function computes a relative path from one directory to another.

#!lua
p = path.getrelative("src", "dest")

Parameters

src is the originating directory, dest is the target directory. Both may be specified as absolute or relative.

Return Value

A relative path from src to dest.

Clone this wiki locally