ObjFW  Diff

Differences From Artifact [e46a299ae7]:

To Artifact [2af7091a44]:


563
564
565
566
567
568
569
570
571
572
573
574
575
576


577
578
579
580


581
582
583
584
585
586
587
563
564
565
566
567
568
569

570
571




572
573




574
575
576
577
578
579
580
581
582







-


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







			    exceptionWithSourcePath: source
				    destinationPath: destination];
		}

		enumerator = [contents objectEnumerator];
		while ((item = [enumerator nextObject]) != nil) {
			void *pool2 = objc_autoreleasePoolPush();
			OFArray *components;
			OFString *sourcePath, *destinationPath;

			components = [OFArray arrayWithObjects:
			    source, item, nil];
			sourcePath = [OFString pathWithComponents: components];

			sourcePath =
			    [source stringByAppendingPathComponent: item];
			components = [OFArray arrayWithObjects:
			    destination, item, nil];
			destinationPath = [OFString
			    pathWithComponents: components];
			destinationPath =
			    [destination stringByAppendingPathComponent: item];

			[OFFile copyItemAtPath: sourcePath
					toPath: destinationPath];

			objc_autoreleasePoolPop(pool2);
		}
	} else if (S_ISREG(s.st_mode)) {
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733


734
735
736
737
738
739
740
714
715
716
717
718
719
720


721





722
723
724
725
726
727
728
729
730







-
-

-
-
-
-
-
+
+







			@throw [OFRemoveItemFailedException
			    exceptionWithPath: path];
		}

		enumerator = [contents objectEnumerator];
		while ((item = [enumerator nextObject]) != nil) {
			void *pool2 = objc_autoreleasePoolPush();
			OFArray *components;
			OFString *itemPath;

			components = [OFArray arrayWithObjects:
			    path, item, nil];
			itemPath = [OFString pathWithComponents: components];

			[OFFile removeItemAtPath: itemPath];
			[OFFile removeItemAtPath:
			    [path stringByAppendingPathComponent: item]];

			objc_autoreleasePoolPop(pool2);
		}
	}

#ifndef _WIN32
	if (remove([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE]))