started new compiling platform in packager.lua
This commit is contained in:
19
scripts/test.lua
Normal file
19
scripts/test.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
lfs = require "lfs"
|
||||
sourcesPath = "source/"
|
||||
|
||||
fetchFiles = function(...)
|
||||
local tbl = {}
|
||||
for _, directory in pairs{...} do
|
||||
for file in lfs.dir(directory) do
|
||||
if file ~= "." and file ~= ".." then
|
||||
table.insert(tbl, file)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return tbl
|
||||
end
|
||||
|
||||
for _, file in pairs(fetchFiles(sourcesPath, sourcesPath .. "lib", sourcesPath .. "objects")) do
|
||||
print(file)
|
||||
end
|
||||
Reference in New Issue
Block a user