I am setting the identity as the first line of my main.lua:
Code: Select all
function love.load()
love.filesystem.setIdentity('Test', true)
I have tried running LOVE as `love .`, and also `love Test/` from outside the folder. I have tried to manually create the save directory (it is not being automatically generated as well.. the root one did though).
Is there anything else I can do to diagnose the problem? Any way to obtain some more detailed error message from LOVE?
This is my current full test case:
Code: Select all
function love.load()
love.filesystem.setIdentity('Test', true)
print(love.filesystem.getIdentity(), love.filesystem.getSaveDirectory()) -- OK
local r, m = love.filesystem.write("/abc", "abc") -- Fails miserably
print("write result", r, m)
local files = love.filesystem.getDirectoryItems('/') -- Works correctly
for _, f in ipairs(files) do
print(f)
end
love.event.quit()
end
Code: Select all
$ love Test/
Test /home/svalorzen/.local/share/love/Test
write result nil Could not set write directory.
file_in_main_directory
file_in_save_directory
folder_in_main_directory
folder_in_save_directory
main.lua