[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

How does one get a the size of a file?

From: Matt England <mengland_at_mengland.net>
Date: 2005-10-03 20:11:48 CEST

How does one get a the size of a file before checking it out?

It sure would be nice to know the size from the repo metadata before
checking it out so that I can fix the automation in WebSVN (I'm fixing it's
scripts right now for a variety of things since I didn't hear from their
developers on their list per my issues) such that I can put a
"header("Content-Length: $size");" php line in their code to tell the
web-browser how big the file is while it's download...

...so that uses can see their download progress of big files (otherwise
users have little idea how fast their connection is going and sometimes how
long the download will take, etc).

Any other suggestions on how to best solve this? Maybe my analysis is

In the meantime, I'll hack an export save and then get the size from the
temp file.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 3 22:42:00 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.