Robert Bihlmeyer <robbe at debian.org> writes: > Hi, > > is there a way to get at the size of a splitfile's blocks before > successfully fetching one block? I'm trying to snarf a number of > blocks simultanously, immediately dropping them into their right > positions in the same destination file (rather than into a number of > temp files). This is only possible if I know their sizes beforehand. > > If there's no such data right now, it would be nice to add this to the > splitfile metadata. It's much more useful than the total file size > which is in there. > > -- > Robbe
It's a pretty safe assumption that splitfile blocks will be a power of 2 bytes in size. from that, just take the whole filesize and divide by the number of blocks and round up. Thelema -- E-mail: thelema314 at bigfoot.com Raabu and Piisu GPG 1024D/36352AAB fpr:756D F615 B4F3 BFFC 02C7 84B7 D8D7 6ECE 3635 2AAB _______________________________________________ devl mailing list devl at freenetproject.org http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
