src/backup/catalog.rs: impl DirEntry::is_directory()

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2019-11-14 17:42:17 +01:00 committed by Dietmar Maurer
parent d3bcc7f261
commit c9f002213e

View File

@ -100,6 +100,13 @@ impl DirEntry {
}
}
}
pub fn is_directory(&self) -> bool {
match self.attr {
DirEntryAttribute::Directory { .. } => true,
_ => false,
}
}
}
struct DirInfo {