diff --git a/src/backup/catalog.rs b/src/backup/catalog.rs index 7e103306..70e997ba 100644 --- a/src/backup/catalog.rs +++ b/src/backup/catalog.rs @@ -100,6 +100,13 @@ impl DirEntry { } } } + + pub fn is_directory(&self) -> bool { + match self.attr { + DirEntryAttribute::Directory { .. } => true, + _ => false, + } + } } struct DirInfo {