Update files_api.py

This commit is contained in:
midoks 2022-11-14 18:07:25 +08:00
parent 68c1acfb3e
commit e85c88d9fd
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ class files_api:
if not self.checkDir(path):
return mw.returnJson(False, '敏感目录,请不要花样作死!')
os.system('which chattr && chattr -R -i ' + rPath + path)
mw.execShell('which chattr && chattr -R -i ' + rPath + path)
if os.path.isdir(rPath + path):
import shutil
shutil.rmtree(rPath + path)