[BUG] FileDirectory>>exists
John M McIntosh
johnmci at smalltalkconsulting.com
Tue Jun 10 19:33:36 UTC 2003
On Tuesday, June 10, 2003, at 06:52 AM, Ned Konz wrote:
>> However now that exists: if it's a directory is ok, and considering
>> the bug below according Stephen's note the fallback position causes
>> the logic to open the file using unix fopen, then do a read using
>> unix fread. That exposes another BUG.
>
> Isn't it possible for a file to exist but not actually be readable?
Sure, via permissions you can deny yourself read access to your own
file.
> I'd much prefer to expose stat() to the Squeak layers for Unix boxes.
>
> Like the work you've done on the serial ports, it makes sense for some
> of this stuff to actually take care of the platform differences at
> the Squeak level, rather than in the primitives.
>
Mmm thought/hope someone was rewriting, reviewing the file/steam
classes, like the socket stuff.
Is stat() exist across *all* unix or unix like or clib supported
systems?
> --
> Ned Konz
> http://bike-nomad.com
> GPG key ID: BEEA7EFE
>
>
>
>
--
========================================================================
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
========================================================================
===
More information about the Squeak-dev
mailing list
|