[squeak-dev] Re: Selection in new file list
Colin Putney
cputney at wiresong.ca
Thu Oct 8 07:39:26 UTC 2009
On 7-Oct-09, at 9:04 PM, Andreas Raab wrote:
> Perhaps a binary operator #/ would be in order? I.e.,
>
> foobar := FileDirectory default / 'foo' / 'bar'.
I wasn't actually going to mention this for a few more days, but since
it's come up...
I've been working on a new filesystem API built on top of the
FilePlugin primitives. It does just what you propose above.
The following gives an absolute path:
ref := FSReference defaultDirectory / 'foo' / 'bar'.
A reference is just well, a reference, to a file or directory, not an
actual open stream, so it can respond to
#exists
#isDirectory
#isFile
#delete
#copyTo:
#fileStreamDo:
and so on. It's much nicer than FileDirectory.
It's completely untested on Windows, and there's no documentation yet,
but if anybody wants to take a look it's here:
http://source.wiresong.ca/mc/Filesystem-cwp.22.mcz
Colin
More information about the Squeak-dev
mailing list
|