Bug fix: remove failed file from files_by_name after writing a large file without large-file option
This commit is contained in:
parent
188433e7e9
commit
ffd1083ff4
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ impl<W: Write + Seek> Write for ZipWriter<W> {
|
||||||
&& !self.files.last_mut().unwrap().large_file
|
&& !self.files.last_mut().unwrap().large_file
|
||||||
{
|
{
|
||||||
self.finish_file()?;
|
self.finish_file()?;
|
||||||
self.files.pop();
|
self.files_by_name.remove(&*self.files.pop().unwrap().file_name);
|
||||||
return Err(io::Error::new(
|
return Err(io::Error::new(
|
||||||
io::ErrorKind::Other,
|
io::ErrorKind::Other,
|
||||||
"Large file option has not been set",
|
"Large file option has not been set",
|
||||||
|
|
Loading…
Add table
Reference in a new issue