Old Mac OS and relative pathnames?

Colin Putney cputney at whistler.com
Wed Nov 13 00:09:33 UTC 2002


I've had this problem with DVS as well. In theory ':xxx:yyy' should 
work, it indicates a relative path. But I've never been able to get a 
relative path to work on the Mac in Squeak. This applies to the Carbon 
VM on Mac OS X, too.

Colin

On Tuesday, November 12, 2002, at 03:52  PM, Ned Konz wrote:

> I've tried to fix this before in Perl, and never quite understood
> which part of the behavior I was seeing was due to the Mac's Perl
> runtime and which was due to the Mac OS behavior...
>
> I'm trying to make the ArchiveViewer's 'extract all' button work right
> when I have a zip file with members in subdirectories and on older
> Macs.
>
> The problem I'm having is that I can't get this to work the same way
> on an older Mac as I can on Linux (and presumably on Windows, though
> I haven't tried yet):
>
> d := FileDirectory default.
> fullName := d fullPathFor: 'xxx:yyy'.
> fullDir := FileDirectory forFileName: fullName.
> fullDir assureExistence.
>
> The problem is that on the Mac this recurses forever. I have tried
> 'xxx/yyy' also (which doesn't work for obvious reasons). And I've
> tried ':xxx:yyy' too.
>
> So my questions are:
>
> 1. Should the above work (that is, should it make the directory xxx in
> the default directory)?
>
> 2. If it shouldn't work, how should I handle relative path names on
> older Macs?
>
> Thanks,
> -- 
> Ned Konz
> http://bike-nomad.com
> GPG key ID: BEEA7EFE
>
>

Colin Putney
Whistler.com




More information about the Squeak-dev mailing list