Answers for "python os read file size"

5

python file size

>>> import os
>>> b = os.path.getsize("/path/isa_005.mp3")
>>> b
2071611
Posted by: Guest on May-14-2020
0

get file size python

>>> import os
>>> b = os.path.getsize("/path/isa_005.mp3")/ (1024*1024)
>>> b
Posted by: Guest on September-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language