18 Jul
2003
18 Jul
'03
2:37 p.m.
For calculating if the user reaches the diskquota. Greetings. Michael ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: "Michael Bleijerveld" <michael@bleijerveld.nl> Cc: <zope@zope.org> Sent: Friday, July 18, 2003 4:35 PM Subject: Re: [Zope] get size of file in localfs
Michael Bleijerveld wrote:
file = container.REQUEST.form['FILE'] filesize = len(file.read()) When getting the size of large files it takes a long time to calculate.
Is there another (fast) way to get the filesize in a python script ?
What do you need to know the length of the file for?
cheers,
Chris