I’m having an issue with the system.pathForFile call on Android. I’m testing whether certain files, specifically MP3 files, exist in a subfolder.
If the file does not exist, then the first time this call is made, it correctly returns nil.
However, all subsequent calls, even on subsequent launches of the app , incorrectly return a path that does not exist.
The path returned is:
/data/data/PACKAGENAME/files/coronaResources/sounds/FILENAME.mp3
(with PACKAGENAME being my unique identifier, and FILENAME the file I am testing)
This would indicate that maybe Corona is copying/setting/creating something the first time the call is made, which then persists forever.
I know there are limitations using this call on Android, but nothing in the documentation mentions MP3 files.
Help!
Update: Also tried using the base (resources) directory with the same result, so it does not appear to be an issue with subfolders.