整理代码

This commit is contained in:
MrZ626
2021-09-24 08:27:40 +08:00
parent b890813732
commit 9fa4b97e5e
6 changed files with 7 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ function FILE.clear(path)
end
end
function FILE.clear_s(path)
if path==''or (fs.getRealDirectory(path)==SAVEDIR and fs.getInfo(path).type=='directory')then
if path==''or(fs.getRealDirectory(path)==SAVEDIR and fs.getInfo(path).type=='directory')then
for _,name in next,fs.getDirectoryItems(path)do
name=path..'/'..name
if fs.getRealDirectory(name)==SAVEDIR then