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

Bob Arning arning at charm.net
Sun Aug 3 23:23:06 UTC 2003


On Sun, 3 Aug 2003 23:15:05 +0000 (GMT) tim at sumeru.stanford.edu wrote:
>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

Umm... maybe you meant

+++++++
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"

	^(self directoryNamed: filenameOrPath ) exists
++++++++++++++


Cheers,
Bob



More information about the Squeak-dev mailing list