[ENH] Resources

Russell Penney russell.penney at tincanct.com
Tue May 25 12:36:25 UTC 2004


Wolfgang,
  Thanks for the comment.

( RURI fromString: './file3.zip/file1.txt' ) asAbsolute resource contents

Yeah thought about that one. What do people think? It would add some
checking to see if it is a valid file or directory.

Fragments are meant to be information to be given to the resource returned
by the uri. So it can transform the data before returning it to the caller.
So "file3.zip#file1.txt" is more appropriate and in line with the http
common usage. But hey why get bogged down in details? :)

Russell


> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org [mailto:squeak-dev-
> bounces at lists.squeakfoundation.org] On Behalf Of Wolfgang Eder
> Sent: Tuesday, 25 May 2004 8:57 PM
> To: The general-purpose Squeak developers list
> Subject: Re: [ENH] Resources
> 
> Russell Penney wrote:
> [snip]
> > Try
> > ( RURI fromString: 'file1.txt' ) asAbsolute
> > ( RURI fromString: 'file1.txt' ) asAbsolute resource contents
> > ( RURI fromString: './file2.jpg' ) asAbsolute resource contents
> > ( RURI fromString: './' ) asAbsolute resource uriCollection
> >
> > Zip files are just like directories
> > ( RURI fromString: './file3.zip' ) asAbsolute resource uriCollection
> >
> > Fragments can be used to access files in Zip files
> > ( RURI fromString: './file3.zip#file1.txt' ) asAbsolute resource
> contents
> 
> hi! just a small comment: what about making zip files
> even more like directories:
> ( RURI fromString: './file3.zip/file1.txt' ) asAbsolute resource contents
> 
> just my 1/2c
> cheers,
> wolfgang
> 
> 
> 






More information about the Squeak-dev mailing list