Its me again...
In -[NSFileManager isDeleteableFileAtPath:] you have
- (BOOL) isDeletableFileAtPath: (NSString*)path
{
const char* cpath = [self fileSystemRepresentationWithPath: path];... [some code deleted] ...
#else
cpath = [self fileSystemRepresentationWithPath:
[path stringByDeletingLastPathComponent]];
return (access(cpath, X_OK || W_OK) != 0);
#endif
}
}
I thinks this access() call cannot work...
1) The parameter #2 for access() is defined to be a bitmask so it should be X_OK | W_OK
2) -isDeleteableFileAtPath: should return YES when the file is deleteable. access() returns 0 on success,
so the logic is invers.
In my opinion the line with the access() call should read
return (access(cpath, X_OK | W_OK) == 0);And that is the way I got it working here. With the current implementation the
method returns NO for perfectly deleteable files...
Roland
_______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
