Hi a dev on my team wrote this and I need to know what is doing.
var icnPath = 'images/icons/bundle/'; var path = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, icnPath); var dir = path.getDirectoryListing(); var images = []; for (intFile in dir) { if (dir[intFile].indexOf("@2x") == -1) { images[dir[intFile].replace(".png", "")] = icnPath + dir[intFile]; } }