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  Python code snippet - How to check if cursor is hidden?

Leave a Reply

Your email address will not be published.

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