diff --git a/src/count.rs b/src/count.rs index a4222d5..4c56d52 100644 --- a/src/count.rs +++ b/src/count.rs @@ -5,6 +5,7 @@ pub(crate) fn count_repositories
(repo_path: P) -> Result where P: AsRef, { + std::fs::create_dir_all(&repo_path)?; Ok(read_dir(repo_path)? .filter_map(StdResult::ok) .filter(|entry| entry.file_type().map(|ft| ft.is_dir()).unwrap_or(false))