templates
This commit is contained in:
parent
37eaccd80e
commit
2c1793a128
12 changed files with 496 additions and 26 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue