lstat(fileName)[ST_SIZE]

Sivakumar Bhaskarapanditha Sivakumar.Bhaskarapanditha at abaqus.com
Fri Jun 10 20:33:42 CEST 2005


Hi,

 

I need your help in this. What is the type of
os.lstat(fileName)[stat.ST_SIZE]. In python 2.0 I am getting it as int and
in 2.3 it is long. Because it is an int in 2.0 the file size reported is
negative for file sizes > INT_MAX. Do you know if this is a bug in 2.0. Are
there other ways of getting file sizes. In 2.3 everything is alright. 

 

Any help in this matter will be greatly appreciated.

 

Best regards,

Siva 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050610/0d62881d/attachment.html>


More information about the Python-list mailing list