Relative path with graphics.newTexture()?

I’m trying to load all my images in one place, so they can be used throughout the project. Someone told me to use texture objects for this, but I’m having trouble getting Corona to find my file.

My project structure looks like this:

v FF \> audio \> data \> icons v images background.png v scripts menu.lua build.settings config.lua main.lua 

In my main.lua, I want to do something like this:

local backTex = graphics.newTexture({type="image", filename="background.png", baseDir=?})

But Corona can’t find background.png. How do I make it look in the /images folder?

filename=“images/background.png”

(baseDir not needed, default of resource is correct)

I got it working, thank you!

filename=“images/background.png”

(baseDir not needed, default of resource is correct)

I got it working, thank you!