This commit is contained in:
Mr Chen
2024-10-27 19:29:09 +08:00
parent b121d08503
commit 5394dd329a
13 changed files with 878 additions and 38 deletions
+8
View File
@@ -116,6 +116,14 @@ def get_dir():
return dir_list
# 获取站点日志目录
@blueprint.route('/get_dir_size', endpoint='get_dir_size', methods=['POST'])
def get_dir_size():
path = request.form.get('path', '')
size = file.getDirSize(path)
return mw.returnData(True, mw.toSize(size))