[BUG] String asURL fails -- If given a bad URL!

Lex Spoon lex at cc.gatech.edu
Mon Mar 11 05:37:23 UTC 2002


"David N. Smith (IBM)" <dnsmith at watson.ibm.com> wrote:
> Stephen & Dan:
> 
> This work's fine on my Mac: 'file:///PBG3/html/short.html' asUrl
> 
> It answers a FileURL with a path of:  OrderedCollection('PBG3' 'html' 'short.html')
> 
> Don't forget that it takes THREE slashes, not the usual two.

Actually, in Squeak, it's either one slash or zero, depending on whether
you want an absolute locator or a relative one.   I'm not sure what is
right, but this seems sensible.


-Lex



More information about the Squeak-dev mailing list