[BUG] FileDIrectory>isAFileNamed: considered vile

Ned Konz ned at bike-nomad.com
Sat Aug 2 01:20:28 UTC 2003


On Friday 01 August 2003 05:15 pm, Tim Rowledge wrote:
> I mean yuck. Blech.
>
> Testing for the existence of a file by trying to open it? OK, if
> one is utterly restricted to only the support guaranteed in a an
> ansi library maybe we can make an excuse.
>
> Time to extend the FilePlugin a bit. Old images on new VMs would
> continue to sin as usual. New image on old VM would fail the prim
> and sin for punishment. New image on new VM would do The Right
> Thing.

Well, this can be improved somewhat by using the directory enumeration 
primitive. Look at FileDirectory>>fileOrDirectoryExists:

But I do agree that the whole file and directory mess needs to be 
revisited...

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list