This module provides access to
Files in two places, and two places only:
- The root folder of the .love-file. (Alternatively a directory).
- The root folder of the save directory.
Each game is granted a single diretory on the user system where files can be saved.
Full access to normal file I/O is no longer present due to security concerns.
The directories will typically be something like:
- C:\Documents and Settings\user\Application Data\LOVE\game
- /home/user/.love/game
Files that are opened for write or append will always be created in the
save directory. The same goes for other operations that involve writing to
the filesystem, like mkdir.
Files that are opened for read will be looked for in the game root folder, and then
the save directory (in that order). So if a file with a certain filename (and
path) exist in both the .love-file and the save folder, the one in the .love-file takes precedence.