Skip to content

os.realpath

starkos edited this page Apr 10, 2021 · 7 revisions

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


Returns the canonical absolute path of a filename.

ok, err = os.realpath(path)

This functions calls realpath() on Posix systems and _fullpath on Windows.

Parameters

path is the path to be converted.

Return Value

If successful, returns the canonical absolute path. On error, returns nil and an error message.

Availability

Premake 5.0 or later.

See Also

Clone this wiki locally