Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/Modules/BuildListHelpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,18 @@ local function ScanFolder(subPath)
local fileName = handle:GetFileName()
local fullFileName = main.buildPath..currentSubPath..fileName
local header = ReadBuildHeader(fullFileName)
if not header then return false end
t_insert(list, {
fileName = fileName,
subPath = currentSubPath,
fullFileName = fullFileName,
modified = handle:GetFileModifiedTime(),
buildName = fileName:gsub("%.xml$",""),
level = header.level,
className = header.className,
ascendClassName = header.ascendClassName,
})
if header then
t_insert(list, {
fileName = fileName,
subPath = currentSubPath,
fullFileName = fullFileName,
modified = handle:GetFileModifiedTime(),
buildName = fileName:gsub("%.xml$",""),
level = header.level,
className = header.className,
ascendClassName = header.ascendClassName,
})
end

if not handle:NextFile() then break end
end
Expand All @@ -101,9 +102,8 @@ local function ScanFolder(subPath)
fullFileName = main.buildPath..currentSubPath..folderName,
modified = folder.modified
})
if not scanDir(nextSubPath) then return false end
scanDir(nextSubPath)
end
return true
end

scanDir(subPath)
Expand Down
Loading