From 2f1209d1e0e3273450c19000f2e367e260211dad Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Fri, 15 May 2020 13:34:48 +0200 Subject: [PATCH] Create folders to fix test --- src/count.rs | 1 + 1 file changed, 1 insertion(+) 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))