How to find size of file?
Irmen de Jong
irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Fri Mar 5 16:55:39 EST 2004
Yermat wrote:
> def sizeOf(f):
> f.seek(0,2)
> return f.tell()
>
Hm. For better performance (and readability) try os.path.getsize(filename).....
--Irmen
More information about the Python-list
mailing list