DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+5 =
Submit