mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-09 04:32:38 +01:00
Update ECSAPI.lua
This commit is contained in:
parent
256961e9fa
commit
96836bb3db
@ -1668,8 +1668,11 @@ end
|
||||
function ECSAPI.formatHDD(address)
|
||||
local proxy = component.proxy(address)
|
||||
local list = proxy.list("")
|
||||
ECSAPI.info("auto", "auto", "", "Formatting disk...")
|
||||
for _, file in pairs(list) do
|
||||
if not proxy.isReadOnly(file) then proxy.remove(file) end
|
||||
if type(file) == "string" then
|
||||
if not proxy.isReadOnly(file) then proxy.remove(file) end
|
||||
end
|
||||
end
|
||||
list = nil
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user