2005-04-03 07:22:07 +02:00
|
|
|
--- Source/NSFileManager.m.orig Fri Mar 18 05:17:39 2005
|
|
|
|
+++ Source/NSFileManager.m Fri Apr 1 06:37:16 2005
|
|
|
|
@@ -757,6 +757,12 @@
|
2004-04-29 04:56:58 +02:00
|
|
|
|
|
|
|
#endif /* !MINGW */
|
2005-04-03 07:22:07 +02:00
|
|
|
|
2004-04-29 04:56:58 +02:00
|
|
|
+ // dont change when we have no attibutes
|
|
|
|
+ if (attributes == nil)
|
|
|
|
+ {
|
|
|
|
+ return YES;
|
|
|
|
+ }
|
2005-04-03 07:22:07 +02:00
|
|
|
+
|
2004-04-29 04:56:58 +02:00
|
|
|
// change attributes of last directory
|
|
|
|
if ([attributes count] == 0)
|
2005-04-03 07:22:07 +02:00
|
|
|
{
|
|
|
|
@@ -785,6 +791,12 @@
|
|
|
|
int len;
|
|
|
|
int written;
|
|
|
|
#endif
|
|
|
|
+
|
|
|
|
+ if (path == nil) // don't try to do anything when path is nil
|
|
|
|
+ {
|
|
|
|
+ ASSIGN(_lastError, @"Could not create directory - name is nil");
|
|
|
|
+ return NO;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/* This is consitent with MacOSX - just return NO for an invalid path. */
|
|
|
|
if ([path length] == 0)
|