Update ECSAPI.lua

This commit is contained in:
Igor Timofeev 2015-09-15 01:21:47 +03:00
parent 3e337f9e9a
commit b8d08ec2df

View File

@ -1668,7 +1668,7 @@ end
function ECSAPI.formatHDD(address)
local proxy = component.proxy(address)
local list = proxy.list("")
for file in list do
for _, file in list do
if not proxy.isReadOnly(file) then proxy.remove(file) end
end
list = nil