love.filesystem.getRealDirectory
Gets the platform-specific absolute path of the directory containing a filepath.

This can be used to determine whether a file is inside the save directory or the game's source .love.
realdir = love.filesystem.getRealDirectory( filepath )
filepath string The filepath to get the directory of.
realdir string The platform-specific full path of the directory containing the filepath.