Skip to content

How to check the size of a file in Python?

>>> import os
>>> b = os.path.getsize("/path/isa_005.mp3")
>>> b
2071611
See also  How to have requirement file in Python for libs?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.