i’ve manage to find the project.
the base of the project was to get the list of files in a directory, from there is pretty easy. just put the result on a tableview, inside the tableview you can add the preview images or delete images or insert more images.
the code to get the content i used (hope this will help you):
workingDrectory should be system.TemporaryDirectory or any other valid base.
tempDir should be the name of a folder you want to get the content. if you want to add and remove content you can’t work on system.ResourceDirectory you need to transfer first the content from there to system.TemporaryDirectory or system.DocumentsDirectory.
local function getContentDir(tempDir,workingDirectory) local lfs = require "lfs" local dname = tempDir or nil local workingDir = workingDirectory or nil local tabelaRetorno={} local contador=1 if dname and workingDir then local docs\_path = system.pathForFile( "", workingDir ) local success = lfs.chdir( docs\_path ) -- returns true on success if success then if (lfs.attributes(dname, "mode") == "directory") then local existe = system.pathForFile( dname, workingDir ) if existe then for file in lfs.dir(existe) do local resultOK, errorMsg if (lfs.attributes(file, "mode") ~= "directory") then tabelaRetorno[contador]=file contador=contador+1 end end end else print ("pasta nao existe. nao tem nada para apagar!") end else print ("problema a aceder a pasta") end end return tabelaRetorno end