winamp/Src/external_dependencies/openmpt-trunk/include/premake/website/docs/os.realpath.md

24 lines
531 B
Markdown
Raw Normal View History

2024-09-24 12:54:57 +00:00
Returns the canonical absolute path of a filename.
```lua
ok, err = os.realpath(path)
```
This functions calls [realpath()](http://linux.die.net/man/3/realpath) on Posix systems and [_fullpath](http://msdn.microsoft.com/en-us/library/506720ff.aspx) 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 ###
* [os.getcwd](os.getcwd.md)