bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in NSUser.m - NSSearchPathForDirectoriesInDomains()


From: Richard Frith-Macdonald
Subject: Re: Bug in NSUser.m - NSSearchPathForDirectoriesInDomains()
Date: Mon, 21 Jul 2003 14:25:37 +0100


On Monday, July 21, 2003, at 02:06 PM, Roland Schwingel wrote:

But ... the -fileExistsAtPath: method is supposed to return YES if the
path specifies a directory.
For me it returns here (on windows) NO if it is a directory and not a
file...
So, if it's returning NO, there is a bug in the -fileExistsAtPath:
implementation rather than a bug
in respect of whether it is used or -fileExistsAtPath:isDirectory: is
used.
It would also be a way to fix it...

In fact, since -fileExistsAtPath: is implemented as a call to
-fileExistsAtPath:isDirectory:, I can't
see how your patch can possibly fix any problem there might be.
In my patch I call
[fm fileExistsAtPath: path isDirectory:&isDir]
for files the method returns NO and isDir is also NO. For directories the
method returns NO and isDir is set to YES.

Are you using an old version of the base library, or one where you
have hacked the -fileExistsAtPath:isDirectory: method yourself?

Looking at the code in CVS, it appears to be impossible for it to set
the flag to YES and return NO.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]