SECWDBUHJUJJD42LVFZEAUFR56B4OFWYW34H7PQ5Y7QNTPVIXYOQC
fn create_dir(&mut self, path: &str, mtime: u64, permissions: u16) -> Result<(), Self::Error> {
let mut header = tar::Header::new_gnu();
header.set_mode(permissions as u32);
header.set_mtime(mtime);
header.set_entry_type(tar::EntryType::Directory);
if let Some(ref prefix) = self.prefix {
let path = prefix.clone() + path;
self.archive.append_data(&mut header, &path, &[][..])?;
} else {
self.archive.append_data(&mut header, &path, &[][..])?;
}
Ok(())
}