I’m trying to loop through and load all of my images in my sub directory “images”.
I’m using the following code.
[lua]
local basePath = “images/”
local directory = system.ResourceDirectory
local doc_path = system.pathForFile( basePath, directory )
print(doc_path)
for file in lfs.dir( doc_path ) do
–display and hide graphics
print(file)
end
[/lua]
This code was working fine on my windows computer but on my mac I get the following error.
Jan 23 01:34:51.523: ERROR: The resource file (images) could not be found at case-sensitive path (/Users/Downhill Dash 16.01.23/images).
Jan 23 01:34:51.524: WARNING: Cannot create path for resource file ‘images’. File does not exist.