On Mon, Feb 12, 2007 at 08:19:00PM +0100, bbackde at googlemail.com wrote: > A question on this: do I have to compute the file size from the block > count * 32kb, or can I use the true file size? where is the true file > size stored? The node have to know it to finally truncate the > resulting file to the correct length, true?
The final file size is known... but only if we are fetching the final layer of the pyramid. FetchException has fields for the final size and MIME type and whether they are final. Find the constructor which sets these and have a look at the callers, and you should be able to find what you need. > > On 2/10/07, Florent Daigni?re (NextGen$) <nextgens at freenetproject.org> > wrote: > > * bbackde at googlemail.com <bbackde at googlemail.com> [2007-02-10 > > 19:09:58]: > > > > > While I'm on the FCP2 code I will add a new parameter to the > > > SimpleProgress for a GET that returns the computed filesize when a GET > > > is finalized. > > > > > > Ok? > > > > Well, if you do it, it's fine by me :) > > > > > > > > On 1/4/07, Florent Daigni?re (NextGen$) <nextgens at freenetproject.org> > > > wrote: > > > >* bbackde at googlemail.com <bbackde at googlemail.com> [2006-12-29 > > > >22:09:04]: > > > > > > > >> If a SimpleProgress message is sent with Finalized=true, does'nt the > > > >> node know the final filesize at this time? I assume yes, and I want > > > >> that the size is sent in the SimpleProgress message if it is known. > > > > > > > >And I *want* you to fill in a ticket on the bug tracking system using the > > > >category "wishlist or feature" :p > > > > > > > >More seriously speaking ... they are more urgent matters to be addressed > > > >; will do but not now. > > > > > > > >NextGen$ > > > _______________________________________________ > Tech mailing list > Tech at freenetproject.org > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/tech > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <https://emu.freenetproject.org/pipermail/tech/attachments/20070214/2d52df20/attachment.pgp>