lovr.filesystem.getRealDirectory
Get the absolute path of a directory containing a path in the virtual filesystem. This can be used to determine if a file is in the game's source directory or the save directory.
realpath = lovr.filesystem.getRealDirectory(path)
Arguments
Name | Type | Description |
path | string | The path to check. |
Returns
Name | Type | Description |
realpath | string | The absolute path of the directory containing path .
|
See also
lovr.filesystem