This commit is contained in:
jose
2020-08-15 18:02:15 +08:00
parent eb2e13f5a3
commit 32cc87c132
58 changed files with 6517 additions and 562 deletions
+8 -2
View File
@@ -473,8 +473,14 @@ class bt_task:
# 设置权限
def set_file_accept(self, filename):
public.ExecShell('chown -R www:www ' + filename)
public.ExecShell('chmod -R 755 ' + filename)
# public.ExecShell('chown -R www:www ' + filename)
# public.ExecShell('chmod -R 755 ' + filename)
import files
from collections import namedtuple
get = namedtuple('get',['path'])
get.path = filename
public.writeFile('/tmp/2',str(get.path))
files.files().fix_permissions(get)
# 检查敏感目录
def check_dir(self, path):