Skip to content

Commit

Permalink
Update files.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Dec 19, 2024
1 parent dc54ec2 commit d691862
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/admin/files/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


# 删除文件
Expand Down

0 comments on commit d691862

Please sign in to comment.