Struct rc_zip::reader::sync::SyncStoredEntry
source · pub struct SyncStoredEntry<'a, F> { /* private fields */ }
Implementations§
Methods from Deref<Target = StoredEntry>§
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the entry’s name
This should be a relative path, separated by /
. However, there are zip files in the wild
with all sorts of evil variants, so, be conservative in what you accept.
sourcepub fn comment(&self) -> Option<&str>
pub fn comment(&self) -> Option<&str>
The entry’s comment, if any.
When reading a zip file, an empty comment results in None.
sourcepub fn modified(&self) -> DateTime<Utc>
pub fn modified(&self) -> DateTime<Utc>
This entry’s “last modified” timestamp - with caveats
Due to the history of the ZIP file format, this may be inaccurate. It may be offset by a few hours, if there is no extended timestamp information. It may have a resolution as low as two seconds, if only MSDOS timestamps are present. It may default to the Unix epoch, if something went really wrong.
If you’re reading this after the year 2038, or after the year 2108, godspeed.