mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Should return success even if all path components do exist, as by Apple spec
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39189 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c9d5a3d2cb
commit
3663d1a4de
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-11-22 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Source/NSFileManager.m (createDirectoryAtPath)
|
||||
Should return success even if all path components do exist, as by Apple spec.
|
||||
|
||||
2015-11-13 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Source/NSRange.m: (NSRangeFromString)
|
||||
|
|
|
@ -804,6 +804,11 @@ static NSStringEncoding defaultEncoding;
|
|||
result = [self createDirectoryAtPath: dir
|
||||
attributes: attributes];
|
||||
}
|
||||
// an existing not created dir is equivalent to a created one
|
||||
else
|
||||
{
|
||||
result = YES;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue