lovr.filesystem.getRealDirectory

Edit

Get the absolute path of the mounted archive 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
pathstring The path to check.

Returns

NameTypeDescription
realpathstring The absolute path of the mounted archive containing path.

See also