ObjFW  Diff

Differences From Artifact [b717d78c4a]:

To Artifact [c25e61eb57]:


485
486
487
488
489
490
491

492

493
494
495
496
497
498
499
485
486
487
488
489
490
491
492

493
494
495
496
497
498
499
500







+
-
+








		if ([type isEqual: of_file_type_directory])
			entry.compressionMethod = @"-lhd-";

		output = [_archive streamForWritingEntry: entry];

		if ([type isEqual: of_file_type_regular]) {
			unsigned long long written = 0;
			uintmax_t written = 0, size = attributes.fileSize;
			unsigned long long size = attributes.fileSize;
			int8_t percent = -1, newPercent;

			OFFile *input = [OFFile fileWithPath: fileName
							mode: @"r"];

			while (!input.atEndOfStream) {
				ssize_t length = [app