mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user