From 62c57d2fdffeb34b91449c6f79c55db56a2b4a47 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Tue, 18 Oct 2022 18:00:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=97=B6=E6=8C=87=E5=AE=9A=E6=9D=83=E9=99=90?= =?UTF-8?q?=E4=B8=BA=20755?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/utils/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/common/utils/common.py b/apps/common/utils/common.py index 66b6aee5c..a105d50c7 100644 --- a/apps/common/utils/common.py +++ b/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)