mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Merged in 1.6.0 branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
04e888af0a
commit
cc098b74c2
38 changed files with 812 additions and 295 deletions
|
@ -1243,10 +1243,14 @@ static NSFileManager* defaultManager = nil;
|
|||
}
|
||||
return (res & FILE_ATTRIBUTE_READONLY) ? NO : YES;
|
||||
#else
|
||||
cpath = [self fileSystemRepresentationWithPath:
|
||||
[path stringByDeletingLastPathComponent]];
|
||||
path = [path stringByDeletingLastPathComponent];
|
||||
if ([path length] == 0)
|
||||
{
|
||||
path = @".";
|
||||
}
|
||||
cpath = [self fileSystemRepresentationWithPath: path];
|
||||
|
||||
return (access(cpath, X_OK || W_OK) != 0);
|
||||
return (access(cpath, X_OK | W_OK) == 0);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue