Skip to content

path.getabsolute

starkos edited this page Oct 12, 2013 · 10 revisions

The os.uuid function function converts a relative path an absolute path.

#!lua
p = path.getabsolute("path" [, "relativeTo"])

Parameters

path is the relative path to be converted. It does not need to actually exist on the file system.

relativeTo (optional) specifies an absolute path from which path is considered relative. If not specified, the current working directory will be used.

Return Value

A new absolute path, calculated from the current working directory, or the "relative to" parameter if provided.

Clone this wiki locally