Updated os.remove() to recursively handle lists of files
This commit is contained in:
parent
d832dae35c
commit
d7fb7fb797
@ -280,14 +280,8 @@
|
||||
end
|
||||
-- in case of table, match files for every table entry
|
||||
elseif type(f) == "table" then
|
||||
|
||||
for _, ent in pairs(f) do
|
||||
local p = os.matchfiles(ent)
|
||||
for _, v in pairs(p) do
|
||||
ok, err = builtin_remove(v)
|
||||
if not ok then return ok, err end
|
||||
end
|
||||
end
|
||||
for _, v in pairs(f) do
|
||||
return os.remove(v)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user