[squeak-dev] Re: WebClient-Monticello

Sven Van Caekenberghe sven at beta9.be
Wed Jun 23 20:28:32 UTC 2010


Chris,

On 23 Jun 2010, at 18:47, Chris Cunnington wrote:

> I like this a lot and will be combing over it for a while. 
> 
> I did find in your instructions that:
> 
> directory: (FileDirectory on: '/tmp/monticello')
> 
> presented some problems for me. Putting a folder called "monticello" in the Squeak folder, ensuring anybody could write/read to it, 
> and then using: 
> 
> directory: (FileDirectory default directoryNamed: 'monticello')
> 
> worked as expected. 
> 
> I don't think MCWebServer could find the directory due to an incomplete path. I have a feeling that you expected the relative path to be assisted by the fuller path that gets put into the directory instvar during initialization. But I don't think the example instructions you've provided do that. They clobber whatever's in the directory instvar and leave it with only a relative path. That seems to be why I was getting errors. 
> 
> Thanks for sharing this. 
> 
> Chris 

Thanks for testing! It did work on my system (Mac OS X, Pharo 1.1), but maybe I introduced something non-portable here. Now that I think of it, does a slash separated path work on all platforms ? Probably not. Maybe the only portable way to do it is compose FileDirectory objects like you did.

Sven




More information about the Squeak-dev mailing list