Skip to content

How to check the size of a file in Python?

>>> import os
>>> b = os.path.getsize("/path/isa_005.mp3")
>>> b
See also  PHP code snippet - How to store an image in laravel directly from url?

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.