How to make it work for android

for file in lfs.dir(system.pathForFile( "SomeFolder/", system.ResourceDirectory )) do end

That code works on the simulator and windows build but does not work in android. what could I do to loop through a folder and print each of the files names?

android( and iOS and windows phone) is case sensitive of files and folders names. are you sure it is SomeFolder not someFolder or somefolder?
Make sure your read permission is on in your build.settings

These are my current permissions

android =

{

usesPermissions =

{

“android.permission.INTERNET”,

“android.permission.WRITE_EXTERNAL_STORAGE”,

},

},

was there a permission I needed?

and yes it was the exact folder name

Oh silly me there is no real resources directory
Check out this for more details
https://forums.coronalabs.com/topic/37460-get-file-list-in-resource-directory/

android( and iOS and windows phone) is case sensitive of files and folders names. are you sure it is SomeFolder not someFolder or somefolder?
Make sure your read permission is on in your build.settings

These are my current permissions

android =

{

usesPermissions =

{

“android.permission.INTERNET”,

“android.permission.WRITE_EXTERNAL_STORAGE”,

},

},

was there a permission I needed?

and yes it was the exact folder name

Oh silly me there is no real resources directory
Check out this for more details
https://forums.coronalabs.com/topic/37460-get-file-list-in-resource-directory/