Diff of /code/getImagePaths.lua [000000] .. [b758a2]

Switch to unified view

a b/code/getImagePaths.lua
1
function getImagePaths(folder)
2
    dirs = dir.getdirectories(folder);
3
4
    imagePaths = {}
5
    for i,dirpath in ipairs(dirs) do
6
        command = 'find ' .. dirpath .. ' -iname "*.png"'
7
        res = sys.execute(command)
8
        for str in string.gmatch(res, "([^\n]+)") do
9
            table.insert(imagePaths, str)
10
        end
11
    end
12
    return imagePaths
13
end