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:
Riccardo Mottola 2015-11-22 22:39:09 +00:00
parent c9d5a3d2cb
commit 3663d1a4de
2 changed files with 10 additions and 0 deletions

View file

@ -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)

View file

@ -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