On Fri, Jun 27, 2003 at 10:59:50PM +1000, fish wrote:
> On Thu, Jun 26, 2003 at 07:10:16PM +0100, Toad wrote:
> > On Fri, Jun 27, 2003 at 02:06:24AM +1000, fish wrote:
> > Just do it with the metadata. The zip manifest file will have metadata,
> > the metadata will have a new kind of redirect inside it. And where is
> > the metadata spec again? :)
> 
> Hrm, so I read that completly incorrectly originally, implented it 
> differently, but in some respects I prefer this method - ezach file
> has an associated file.metadata with the metadata for that file. 
> The nice thing about this, as opposed to the sttoring the data in the 
> zip manifst, is that it doens't require modification of client tools
> in order to take advantage of it.  But I'll change it if people really
> care, heh

Great that somebody is implementing this. However, it seems better to me
to have the metadata in the regular metadata section, like a manifest
file does it (the code is already in GetRequestProcess to read manifest
files...). Hence, our current metadata looks like:

Document
Name=noactive.png
Redirect.Target=freenet:[EMAIL PROTECTED],dqT6NsilWM-oDXm3nVxtg
Info.Format=image/png
EndPart

ZIP metadata would look like
Document
Name=noactive.png
Info.Format=image/png
ZIPRedirect.Filename=noactive.png
EndPart


Now, if you want to compress the metadata, I have no real problem with
that, however I would prefer it to be all in one file. Separate files
within the ZIP will not compress at all well. Something like:

Version
Revision=1
ZIPMetadataFilename=.metadata
End

Which would tell it to read the metadata from the file .metadata in the
attached ZIP. However, if you implement this, you may need to deal with
places other than GetRequestProcess. I suggest you implement the former
first.

It could be argued that all this is adding unnecessary complexity. I
would argue that it is entirely warranted given Freenet's unique
properties.

Note that I do not write client tools, apart from client.cli.Main and
fproxy, and I do not insert a freesite; this is just what appears most
sensible to me aesthetically. Input from the community would be nice.
-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to