python how to find size of file in bytes code example
Example: python get size of file
import os
# get size in bytes
path = 'path/to/file.txt'
size = os.path.getsize(path)
import os
# get size in bytes
path = 'path/to/file.txt'
size = os.path.getsize(path)