src/backup/catalog.rs: impl DirEntry::is_directory()
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
d3bcc7f261
commit
c9f002213e
@ -100,6 +100,13 @@ impl DirEntry {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn is_directory(&self) -> bool {
|
||||||
|
match self.attr {
|
||||||
|
DirEntryAttribute::Directory { .. } => true,
|
||||||
|
_ => false,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct DirInfo {
|
struct DirInfo {
|
||||||
|
Loading…
Reference in New Issue
Block a user