templates

This commit is contained in:
Pascal Engélibert 2026-03-03 15:15:18 +01:00
commit 2c1793a128
12 changed files with 496 additions and 26 deletions

View file

@ -160,7 +160,9 @@ pub async fn fetch_repo_files(
.expect("unreachable");
let repo_id_str = str::from_utf8(&repo_id_str).expect("unreachable");
let repo_dir = PathBuf::from(&config.data_dir).join(repo_id_str);
let repo_dir = PathBuf::from(&config.data_dir)
.join(crate::SUBDIR_REPOS)
.join(repo_id_str);
std::fs::create_dir(&repo_dir).map_err(FetchRepoError::CannotCreateDir)?;
let mut file_index = HashSet::new();