A question about writing and appending with love.filesystem
Posted: Thu Feb 15, 2018 5:01 am
Hi, first time LOVE user here! I'm just getting into the API so forgive me if the answer here is obvious, but I googled around for a bit to no avail. On the LOVE wiki page for love.filesystem, it says:
Thanks!
I'm curious to know if this means LOVE can, in all circumstances, only write to the save directory. Is it completely impossible to write to the source directory (the one containing main.lua)? If so, is there a way to ship a game such that things like config files (which will be modifiable ingame) are automatically placed in the user's save directory on install, or should I just store the initial values for these files in my source directory and then copy them into the save directory if they aren't found there?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.
Thanks!