Create folders to fix test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Valentin Brandl 2020-05-15 13:34:48 +02:00
parent 195815fc8a
commit 2f1209d1e0
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -5,6 +5,7 @@ pub(crate) fn count_repositories<P>(repo_path: P) -> Result<usize>
where where
P: AsRef<Path>, P: AsRef<Path>,
{ {
std::fs::create_dir_all(&repo_path)?;
Ok(read_dir(repo_path)? Ok(read_dir(repo_path)?
.filter_map(StdResult::ok) .filter_map(StdResult::ok)
.filter(|entry| entry.file_type().map(|ft| ft.is_dir()).unwrap_or(false)) .filter(|entry| entry.file_type().map(|ft| ft.is_dir()).unwrap_or(false))