Fix file browser not deleting folders

This commit is contained in:
Garrett 2018-10-27 14:49:05 -04:00
parent 579e80d376
commit 26fdab7a45

View File

@ -335,14 +335,16 @@ end
local function DeleteFilesInFolders(path)
local files, folders = file.Find(path.."*", "DATA")
for k,v in pairs(files)do
file.Delete(path..v)
end
for k,v in pairs(folders)do
DeleteFilesInFolders(path..v.."/")
end
file.Delete(path)
end
local function SearchNodes(node, name)