Feature Request: Nested SARs

Stephen Pair spair at acm.org
Thu Dec 5 14:03:04 UTC 2002


> On Wednesday 04 December 2002 09:03 pm, Ned Konz wrote:
> > Doesn't this work in the preamble (haven't tried it, but it 
> seems like 
> > it'd work)? Seems pretty simple to me:
> >
> > SARInstaller new fileInFrom: (self zip memberNamed: 'whatever.zip') 
> > contentStream.
> 
> yeah, that worked for me.
> 
> It is *that* horrible?

Well...mildly horrible (and thanks for showing me how to do it).  It
would be nice to have #fileInMemberNamed: handle this for you.  Or, have
a separate method #fileInSARMemberNamed:.

> I don't understand the part about:
> 
> > Also, it might be good to allow the members of
> > a SAR to be embedded in another SAR within some containing 
> directory 
> > and then allow that to be easily loaded as if it were a SAR 
> (something 
> > like #installSARDirectory:).
> 
> How would that differ from the above?

It was late when I wrote that. ;)  What I mean is instead of embedding a
SAR within another SAR, you would embed the unzipped directory tree in a
SAR (within some directory name).  For example, if I'm embedding Bar.sar
within Foo.sar, I would instead embed the contents of Bar.sar within a
directory called Bar inside Foo.sar.  That's not such a big deal though.

- Stephen




More information about the Squeak-dev mailing list