ObjFW  Diff

Differences From Artifact [8441a7f8cf]:

  • File utils/ofzip/ZIPArchive.m — part of check-in [289f2b1272] at 2017-06-05 21:57:38 on branch trunk — OFFileManager: Don't use stat() on MorphOS (user: js size: 9662)

To Artifact [15729aa028]:

  • File utils/ofzip/ZIPArchive.m — part of check-in [23e57c5040] at 2017-07-22 23:04:35 on branch trunk — OFFile: Simplify mode This removes "b" for binary and always uses binary, as there is no good reason to not use binary. (user: js size: 9661)

264
265
266
267
268
269
270
271
272
273
274
275
276
277
278

		if (![app shouldExtractFile: fileName
				outFileName: outFileName])
			goto outer_loop_end;

		stream = [_archive streamForReadingFile: fileName];
		output = [OFFile fileWithPath: outFileName
					 mode: @"wb"];
		setPermissions(outFileName, entry);

		while (![stream isAtEndOfStream]) {
			ssize_t length = [app copyBlockFromStream: stream
							 toStream: output
							 fileName: fileName];








|







264
265
266
267
268
269
270
271
272
273
274
275
276
277
278

		if (![app shouldExtractFile: fileName
				outFileName: outFileName])
			goto outer_loop_end;

		stream = [_archive streamForReadingFile: fileName];
		output = [OFFile fileWithPath: outFileName
					 mode: @"w"];
		setPermissions(outFileName, entry);

		while (![stream isAtEndOfStream]) {
			ssize_t length = [app copyBlockFromStream: stream
							 toStream: output
							 fileName: fileName];