From 3a5174c5217752de23f8428782654eff039f79b5 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Tue, 28 Mar 2023 17:34:14 -0400 Subject: [PATCH] Added `len` method to `Creator` --- src/creator/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/creator/mod.rs b/src/creator/mod.rs index 173b7d4..1595cb9 100644 --- a/src/creator/mod.rs +++ b/src/creator/mod.rs @@ -44,6 +44,10 @@ impl Creator { }) } + pub fn len(&self) -> usize { + self.entries.len() + } + pub fn create(self, outdir: &Path, sender: Sender) -> Result<(), Box> { let d = env::current_dir()?; let plist = Mutex::new(Plist::default());