Yes it is. But there must be something I miss here. After making the appdata folder point to the document folder, how do I access it from my love project ? For now, I'm looking for xml files within my love folder so with an relative path, something like
Yes, I was just missing love.filesystem.getAppdataDirectory(), that was pretty obvious !
About the document folder, I just did this in my love project :
Code: Select all
local d = love.filesystem.getAppdataDirectory()
documents = '/var/mobile/Containers/Data/Application/'..split(d,'/')[5]..'/Documents/'
for i,f in ipairs(love.filesystem.getDirectoryItems(documents)) do
print(f)
end
So I got a document path like this :
/var/mobile/Containers/Data/Application/74B84D21-DB70-4DF0-BCFA-30E19A0DED56/Documents/
but, there is no item in it. A lovE.filesystem.isDirectory returns False, and I failed to read any of my xml put in itunes.
So there is two possibility :
- either my document path is not good at all and, in this case I'm missing an answer to my question 2 from my previous post
- either the folder is not accessible at all from love code and the topic end here...