From d6918621fa365027cbd0f3d692a5c921518be170 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 19 Dec 2024 23:55:16 +0800 Subject: [PATCH] Update files.py --- web/admin/files/files.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/admin/files/files.py b/web/admin/files/files.py index af692921c5..0caa5d2227 100644 --- a/web/admin/files/files.py +++ b/web/admin/files/files.py @@ -253,7 +253,9 @@ def create_dir(): def get_dir_size(): path = request.form.get('path', '') size = file.getDirSizeByBash(path) - return mw.returnData(True, mw.toSize(size)) + return mw.returnData(True, size) + # size = file.getDirSize(path) + # return mw.returnData(True, mw.toSize(size)) # 删除文件