Create build path if it doesn't exist.

This commit is contained in:
Bill Thiede 2022-12-03 22:32:10 -08:00
parent 6afd087c5b
commit 4ca427121c

View File

@ -117,6 +117,10 @@ fn reload(config: &State<Config>, repo: &str) -> Result<String, SyncError> {
&www_root
);
if !build_path.exists() {
info!("Creating {}", build_path.display());
fs::create_dir_all(&build_path)?;
}
if !commits_root.exists() {
info!("Creating {}", commits_root.display());
fs::create_dir_all(&commits_root)?;