Hello Everyone,
I am having some troubles opening json files read that are located in the ResourceDirectory.
When calling the system.pathForFile passing the file name and directory it returns what it seems a valid path but passing the returned filePath to io.open(filePath, “r”) it returns a “No such file or directory error”.
Following the same procedure using the documents directory seems to work fine. Is there any special behavior about reading the ResourceDirectory ? If the file was indeed missing would it return a nil path (as it happens on the other platforms) ? Am I missing something here ?