size of a file

Alex new_name at mit.edu
Tue Jul 24 16:16:51 EDT 2001


import stat
size = os.stat(fd.name)[stat.ST_SIZE]

may be what you want.

HTH
Alex.



More information about the Python-list mailing list