mirror of https://github.com/jumpserver/jumpserver
fix: 修复创建目录时指定权限为 755
parent
4711813af8
commit
62c57d2fdf
|
@ -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…
Reference in New Issue