Ref : https://github.com/python/cpython/pull/25174

https://github.com/localstack/localstack/blob/5a5edcd9d9ccbd6a56f23d71e3a1131b8c814996/localstack/utils/common.py#L324
total_size = 0
    for dirpath, dirnames, filenames in os.walk(path):
        for f in filenames:
            fp = os.path.join(dirpath, f)
            
            if not os.path.islink(fp):
                total_size += os.path.getsize(fp)
    return total_size
def format_bytes(count, default='n/a'):
    if not is_number(count) or count < 0:
        return default
    cnt = float(count)
    for unit in ('B', 'KB', 'MB', 'GB', 'TB'):
        if cnt < 1000:
            return '%s%s' % (format_number(cnt, decimals=3), unit)
        cnt = cnt / 1000.0
    return count
def download(url, path, verify_ssl=True):