diff options
Diffstat (limited to 'src/zip/driver.rs')
| -rw-r--r-- | src/zip/driver.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zip/driver.rs b/src/zip/driver.rs index 8e8c27c..c9a5155 100644 --- a/src/zip/driver.rs +++ b/src/zip/driver.rs | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | use crate::driver::{ArchiveRead, ArchiveWrite, Driver}; | 1 | use crate::driver::{ArchiveRead, ArchiveWrite, Driver}; |
| 2 | use crate::zip::file::CompressionMethod; | 2 | use crate::zip::file::{BitFlag, CompressionMethod}; |
| 3 | use crate::zip::structs::{deserialize, EOCDR64Locator, ExtraHeader, CDR, EOCDR, EOCDR64}; | 3 | use crate::zip::structs::{deserialize, EOCDR64Locator, ExtraHeader, CDR, EOCDR, EOCDR64}; |
| 4 | use crate::zip::{ZipError, ZipFile, ZipResult}; | 4 | use crate::zip::{ZipError, ZipFile, ZipResult}; |
| 5 | use chrono::{Local, NaiveDate, NaiveDateTime, NaiveTime}; | 5 | use chrono::{Local, NaiveDate, NaiveDateTime, NaiveTime}; |
| @@ -138,6 +138,7 @@ impl<IO: Read + Seek> ArchiveRead for Zip<IO> { | |||
| 138 | name.clone(), | 138 | name.clone(), |
| 139 | ZipFile::new( | 139 | ZipFile::new( |
| 140 | CompressionMethod::from_struct_id(cdr.compression_method)?, | 140 | CompressionMethod::from_struct_id(cdr.compression_method)?, |
| 141 | BitFlag::new(cdr.bit_flag), | ||
| 141 | NaiveDateTime::new( | 142 | NaiveDateTime::new( |
| 142 | NaiveDate::from_ymd_opt( | 143 | NaiveDate::from_ymd_opt( |
| 143 | (cdr.dos_date as i32 >> 9 & 0x7F) + 1980, | 144 | (cdr.dos_date as i32 >> 9 & 0x7F) + 1980, |
