7d9087b
1
2
3
4
5
6
7
8
import os def get_file_size(file): file.seek(0, os.SEEK_END) size = file.tell() file.seek(0) return size