DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python get size of file
import os # get size in bytes path = 'path/to/file.txt' size = os.path.getsize(path)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#size
#file
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit