This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sizeof_fmt(num, iec=True): | |
"""Readable file size | |
:param num: Bytes value | |
:type num: int | |
:param iec: default True, set iec pattern (powers of 1024), | |
False set si pattern (powers of 1000) | |
:type iec: boolean | |
:rtype: str | |
""" |