def filtered_filesizeformat(value):
"""
If the value is -1 return an empty string. Otherwise,
change output from fileformatsize to suppress trailing '.0'
and change 'bytes' to 'B'.
"""
if value == -1:
return ''
return filesizeformat(value).replace("bytes", "B")
评论列表
文章目录