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

NameTypeDescription
pathstringThe path to check.

Returns

NameTypeDescription
realpathstringThe absolute path of the directory containing path.

See also