mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 01:01:03 +00:00
Create directories only if it doesn't exist.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35548 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
546d35a421
commit
064c5554f2
2 changed files with 10 additions and 5 deletions
|
@ -1,7 +1,8 @@
|
||||||
2012-09-09 Wolfgang Lux <wolfgang.lux@gmail.com>
|
2012-09-10 Sergii Stoian <stoyan255@gmail.com>
|
||||||
|
|
||||||
* Source/NSPropertyList.m (-storeString): Add missing variable
|
* Source/NSFileManager.m:
|
||||||
declaration on big-endian systems.
|
[createDirectoryAtPath:withIntermediateDirectories:attributes:error:]:
|
||||||
|
Create directories only if it doesn't exist.
|
||||||
|
|
||||||
2012-09-06 Richard Frith-Macdonald <rfm@gnu.org>
|
2012-09-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -749,8 +749,12 @@ static NSStringEncoding defaultEncoding;
|
||||||
while ((path = (NSString *)[paths nextObject]) != nil)
|
while ((path = (NSString *)[paths nextObject]) != nil)
|
||||||
{
|
{
|
||||||
dir = [dir stringByAppendingPathComponent: path];
|
dir = [dir stringByAppendingPathComponent: path];
|
||||||
result = [self createDirectoryAtPath: dir
|
// create directory only if it doesn't exist
|
||||||
attributes: attributes];
|
if (NO == [self fileExistsAtPath: dir])
|
||||||
|
{
|
||||||
|
result = [self createDirectoryAtPath: dir
|
||||||
|
attributes: attributes];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue