Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get size of file python

>>> import os
>>> os.path.getsize("/path/to/file.mp3")
2071611 # output in bytes
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #size #file #python
ADD COMMENT
Topic
Name
6+4 =