aboutsummaryrefslogtreecommitdiff
path: root/src/zip
diff options
context:
space:
mode:
Diffstat (limited to 'src/zip')
-rw-r--r--src/zip/file/info.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zip/file/info.rs b/src/zip/file/info.rs
index 90d257d..bfec0b7 100644
--- a/src/zip/file/info.rs
+++ b/src/zip/file/info.rs
@@ -162,6 +162,10 @@ impl ZipFileInfo {
162 comment, 162 comment,
163 } 163 }
164 } 164 }
165
166 pub fn is_dir(&self) -> bool {
167 self.name.ends_with("/")
168 }
165} 169}
166 170
167impl ArchiveFileInfo for ZipFileInfo {} 171impl ArchiveFileInfo for ZipFileInfo {}