fix builtcandidatetree
This commit is contained in:
6
main.lua
6
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
|
||||
|
||||
Reference in New Issue
Block a user