Author: rmottola
Date: Sun Nov 22 23:39:09 2015
New Revision: 39189

URL: http://svn.gna.org/viewcvs/gnustep?rev=39189&view=rev
Log:
Should return success even if all path components do exist, as by Apple spec

Modified:
    libs/base/trunk/ChangeLog
    libs/base/trunk/Source/NSFileManager.m

Modified: libs/base/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=39189&r1=39188&r2=39189&view=diff
==============================================================================
--- libs/base/trunk/ChangeLog   (original)
+++ libs/base/trunk/ChangeLog   Sun Nov 22 23:39:09 2015
@@ -1,3 +1,8 @@
+2015-11-22 Riccardo Mottola <[email protected]>
+
+       * Source/NSFileManager.m (createDirectoryAtPath)
+       Should return success even if all path components do exist, as by Apple 
spec.
+
 2015-11-13 Riccardo Mottola <[email protected]>
 
        * Source/NSRange.m: (NSRangeFromString)

Modified: libs/base/trunk/Source/NSFileManager.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSFileManager.m?rev=39189&r1=39188&r2=39189&view=diff
==============================================================================
--- libs/base/trunk/Source/NSFileManager.m      (original)
+++ libs/base/trunk/Source/NSFileManager.m      Sun Nov 22 23:39:09 2015
@@ -804,6 +804,11 @@
              result = [self createDirectoryAtPath: dir
                                        attributes: attributes];
            }
+          // an existing not created dir is equivalent to a created one
+          else
+            {
+              result = YES;
+            }
        }
     }
   else


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to