Update index.py

This commit is contained in:
midoks 2023-02-24 05:41:50 +08:00
parent 4122de13e3
commit a8808be9ae
1 changed files with 3 additions and 1 deletions

View File

@ -364,7 +364,9 @@ class classApi:
if os.path.islink(spath):
dpath = os.readlink(spath)
mw.buildSoftLink(spath, dpath, True)
# mw.buildSoftLink(spath, dpath, True)
self.send('/files/exec_shell',
{"shell": 'ln -sf "' + spath + '" "' + dpath + '"', "path": "/www"}, 30)
return True
if not os.path.isdir(spath):