main.lua

changeset 144
f7e8b865873f
parent 137
091212cef52a
child 146
885fa9f5929d
equal deleted inserted replaced
143:28b92d201120 144:f7e8b865873f
90 if not have_lfs then 90 if not have_lfs then
91 error("The '-d' parameter requires LuaFileSystem (lfs), please make sure this library is available"); 91 error("The '-d' parameter requires LuaFileSystem (lfs), please make sure this library is available");
92 end 92 end
93 local path = assert(get_value(), "path expected for '-d'"):gsub("/*$", ""); 93 local path = assert(get_value(), "path expected for '-d'"):gsub("/*$", "");
94 for f in lfs.dir(path) do 94 for f in lfs.dir(path) do
95 if f:sub(1,1) ~= "." then 95 if f:sub(1,1) ~= "." and f:sub(-4) == ".scs" then
96 table.insert(files, path.."/"..f); 96 table.insert(files, path.."/"..f);
97 end 97 end
98 end 98 end
99 elseif opt == "--summary" then 99 elseif opt == "--summary" then
100 force_summary = true; 100 force_summary = true;

mercurial