Skip to content

Commit af33ed3

Browse files
authored
feat: Expose ZipArchive::central_directory_start (#232)
1 parent 3f6768e commit af33ed3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/read.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,11 @@ impl<R: Read + Seek> ZipArchive<R> {
10301030
self.shared.files.len()
10311031
}
10321032

1033+
/// Get the starting offset of the zip central directory.
1034+
pub fn central_directory_start(&self) -> u64 {
1035+
self.shared.dir_start
1036+
}
1037+
10331038
/// Whether this zip archive contains no files
10341039
pub fn is_empty(&self) -> bool {
10351040
self.len() == 0

0 commit comments

Comments
 (0)