I’m trying to run this code on my android device but it doesn’t seem to work.
local doc\_path = system.pathForFile(system.ResourceDirectory) .. directory for file in lfs.dir(doc\_path) do --Do something end
system.pathForFile returns nil on my device and if I remove it and then just use directory I get
“cannot open /images/myprofile/avatars/”
I’ve also tried removing the begining slash and same thing
“cannot open images/myprofile/avatars/”
I’m just trying to loop though a folder inside the apk. Is this not possible?