From c1de4f83060de8e74eb759e4b9f57fbebc16ae38 Mon Sep 17 00:00:00 2001 From: Robert Jansen <63073556+0x7d8@users.noreply.github.com> Date: Sat, 30 Aug 2025 21:32:12 +0200 Subject: [PATCH] fix #390 Signed-off-by: Robert Jansen <63073556+0x7d8@users.noreply.github.com> --- src/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 29160f124..177267219 100644 --- a/src/write.rs +++ b/src/write.rs @@ -2008,7 +2008,7 @@ fn write_data_descriptor(writer: &mut T, file: &ZipFileData) -> ZipRes block.write(writer)?; } else { // check compressed size as well as it can also be slightly larger than uncompressed size - if file.compressed_size > spec::ZIP64_BYTES_THR { + if file.compressed_size > spec::ZIP64_BYTES_THR && !file.large_file { return Err(ZipError::Io(io::Error::other( "Large file option has not been set", )));