fix: 修复创建目录时指定权限为 755

pull/8968/head
Jiangjie.Bai 2022-10-18 18:00:04 +08:00
parent 4711813af8
commit 62c57d2fdf
1 changed files with 1 additions and 3 deletions

View File

@ -391,8 +391,6 @@ def static_or_direct(logo_path):
return logo_path
def make_dirs(name, mode=None, exist_ok=False):
def make_dirs(name, mode=0o755, exist_ok=False):
""" 默认权限设置为 0o755 """
if mode is None:
mode = 0o755
return os.makedirs(name, mode=mode, exist_ok=exist_ok)