[BUG][FIX]FileDirectory>directoryExists: a bit silly

John M McIntosh johnmci at smalltalkconsulting.com
Mon Aug 4 03:19:43 UTC 2003


Tim, on the mac with the HFS file system you'll find the file system is  
NOT case sensitive.
So on unix you can have the files FOO & foo in the same directory, but  
not on the HFS file system, where
Foo is the same as foo, but certainly not on Unix, so hunting for FoO  
might have some interesting
behavior...

Not sure if that makes a difference to your thinking here...

On Sunday, August 3, 2003, at 04:15  PM, tim at sumeru.stanford.edu wrote:

> +++++++
> which is very simplitic but shows the effect. I _think_ that we can  
> drop
> the whole isCaseSensitive bit. As I see it, if the OS is case sensitive
> you want the exact match in which case plain old (dir directoryNamed:
> fName) exists should be correct and if the OS is case insensitive then
> (dir directoryNamed: fName) exists will work as well. It seems ok on  
> Mac
> & Acorn.
>
> I'm fairly sure that
> +++++++
> directoryExists: filenameOrPath
> 	"Answer true if a directory of the given name exists. The given name
> may be either a full path name or a local directory within this
> directory."
> 	"FileDirectory default directoryExists: FileDirectory default  
> pathName"
>
> 	^(FileDirectory default directoryNamed: filenameOrPath ) exists
> ++++++++++++++
> would actually be correct
>
> tim
>
>
>
>
>
>
>
>
>
>
>
>
>
> < I'm a bug-fixing machine! >
>
> This post brought to you by the BugFixArchiveViewer, a handy tool that
> makes it easy to comment on proposed fixes and enhancements for Squeak.
> For more information, check out the Web page for the  
> BugFixArchiveViewer
> project: http://minnow.cc.gatech.edu/squeak/3214
>
> < I'm a bug-fixing machine! >
>
>
>
--
======================================================================== 
===
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