This commit is contained in:
Robert Jelic
2025-02-16 15:23:10 +01:00
parent 0669ba7621
commit 6d9ed5efa1
3 changed files with 9 additions and 10 deletions

View File

@@ -25,13 +25,12 @@ end
local function scanDir(dir)
local files = {}
for file in io.popen('find "'..dir..'" -type f -name "*.lua"'):lines() do
local f = io.open(file, "r")
if f then
local content = f:read("*all")
f:close()
-- Entferne den src/ Prefix vom Pfad für die Config
local configPath = file:gsub("^src/", "")
files[configPath] = content
local name = file:match("([^/]+)%.lua$")
if name then
files[file] = {
name = name,
path = file:gsub("^src/", ""),
}
end
end
return files