fix builtcandidatetree

This commit is contained in:
Justus Wolff
2026-03-11 18:14:51 +01:00
parent 22e4a7abe1
commit bea3f628f7

View File

@@ -17,7 +17,9 @@ function API._builtCandidateTree(...)
local path = {...}
local candidates = {}
for _,v in pairs(API.getDisks()) do
table.insert(candidates, fs.combine(v, fs.list(v)))
for _,newcan in pairs(fs.list(v)) do
table.insert(candidates, fs.combine(v, newcan))
end
end
for _,v in pairs(path) do
@@ -43,7 +45,7 @@ end
print("Disks: ")
local disks = API.getDisks()
for _,v in pairs(disks) do
print(v..": "..tostring(fs.getFreeSpace("/")).."/"..tostring(fs.getCapacity("/")))
print(" "..v..": "..tostring(fs.getFreeSpace("/")).."/"..tostring(fs.getCapacity("/")))
end
for _,v in pairs(API.list()) do