From bea3f628f778fcbc4714b76e57bbcc27e133d5cc Mon Sep 17 00:00:00 2001 From: Justus Wolff Date: Wed, 11 Mar 2026 18:14:51 +0100 Subject: [PATCH] fix builtcandidatetree --- main.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index ef1df3d..5159f0c 100644 --- a/main.lua +++ b/main.lua @@ -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