zip.addBuffer(Buffer.alloc(0), f.path);
} else {
readStream.once('error', error => zip.outputStream.emit('error', error));
zip.addReadStream(readStream, f.path, { size });
streamOwnsHandle = true;
}
} finally {
// The read stream closes the handle when it finishes.