Added len method to Creator

This commit is contained in:
Nathan Fisher 2023-03-28 17:34:14 -04:00
parent 1160730e1f
commit 3a5174c521

View File

@ -44,6 +44,10 @@ impl Creator {
})
}
pub fn len(&self) -> usize {
self.entries.len()
}
pub fn create(self, outdir: &Path, sender: Sender<Message>) -> Result<(), Box<dyn Error>> {
let d = env::current_dir()?;
let plist = Mutex::new(Plist::default());