Browse Source

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

pull/8968/head
Jiangjie.Bai 2 years ago
parent
commit
62c57d2fdf
  1. 4
      apps/common/utils/common.py

4
apps/common/utils/common.py

@ -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)

Loading…
Cancel
Save