Add ImfsSnapshot::empty_dir() for debugging the Imfs

This commit is contained in:
Lucien Greathouse
2019-10-07 16:20:04 -07:00
parent 98519da7d9
commit f830b024d5

View File

@@ -23,6 +23,12 @@ impl ImfsSnapshot {
ImfsSnapshot::Directory(DirectorySnapshot { children })
}
pub fn empty_dir() -> ImfsSnapshot {
ImfsSnapshot::Directory(DirectorySnapshot {
children: Default::default(),
})
}
}
#[derive(Debug, Clone)]