This PR removed the ftruncate call for the saveAsStream method. Reasoning is that we use the S3 stream wrapper, and would like to write the ZIP to a s3 file. When ftruncate is called on s3 streams, the error is thrown that S3 doesn't support that.
For these cases, where it's always written to a stream, I don't see the need for this truncate method, but I might be mistaken. Open for other improvements here.
This PR removed the
ftruncate
call for thesaveAsStream
method. Reasoning is that we use the S3 stream wrapper, and would like to write the ZIP to a s3 file. Whenftruncate
is called on s3 streams, the error is thrown that S3 doesn't support that.For these cases, where it's always written to a stream, I don't see the need for this truncate method, but I might be mistaken. Open for other improvements here.