ObjFW  Diff

Differences From Artifact [3f6812e137]:

To Artifact [828aa0d8f5]:


846
847
848
849
850
851
852
853
854











855
856
857


858
859

860
861
862




863
864
865
866
867
868
869
846
847
848
849
850
851
852


853
854
855
856
857
858
859
860
861
862
863
864


865
866
867

868
869


870
871
872
873
874
875
876
877
878
879
880







-
-
+
+
+
+
+
+
+
+
+
+
+

-
-
+
+

-
+

-
-
+
+
+
+







			void *pool2 = objc_autoreleasePoolPush();

			[self removeItemAtPath:
			    [path stringByAppendingPathComponent: item]];

			objc_autoreleasePoolPop(pool2);
		}
	}


#ifndef OF_WINDOWS
		if (rmdir([path cStringWithEncoding:
		    [OFSystemInfo native8BitEncoding]]) != 0)
#else
		if (_wrmdir([path UTF16String]) != 0)
#endif
			@throw [OFRemoveItemFailedException
				exceptionWithPath: path
					    errNo: errno];
	} else {
#ifndef OF_WINDOWS
	if (remove([path cStringWithEncoding:
	    [OFSystemInfo native8BitEncoding]]) != 0)
		if (unlink([path cStringWithEncoding:
		    [OFSystemInfo native8BitEncoding]]) != 0)
#else
	if (_wremove([path UTF16String]) != 0)
		if (_wunlink([path UTF16String]) != 0)
#endif
		@throw [OFRemoveItemFailedException exceptionWithPath: path
								errNo: errno];
			@throw [OFRemoveItemFailedException
			    exceptionWithPath: path
					errNo: errno];
	}

	objc_autoreleasePoolPop(pool);
}

#ifdef OF_HAVE_LINK
- (void)linkItemAtPath: (OFString*)source
		toPath: (OFString*)destination