How to make human readable file size in Python

PHOTO EMBED

Tue Jun 18 2024 06:16:33 GMT+0000 (Coordinated Universal Time)

Saved by @freepythoncode ##python #coding #python #programming #hman_readable #file #size

from human_readable.files import file_size
import os

print(file_size(value = os.stat('test.txt').st_size))
content_copyCOPY