Search
 
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
Name
8+8 =