parent
f99e713488
commit
43e5cc2f15
1 changed files with 10 additions and 0 deletions
@ -0,0 +1,10 @@ |
||||
function main(...) |
||||
local packages = {} |
||||
for _, dir in ipairs(os.dirs(path.join("packages", "*", "*"))) do |
||||
local package = path.filename(dir) |
||||
local key = package:sub(1, 1) |
||||
packages[key] = packages[key] or {} |
||||
table.insert(packages[key], package) |
||||
end |
||||
print(packages) |
||||
end |
Loading…
Reference in new issue