[Draft] Implement Reviewer Notice Link using Login Redirect #40

Merged
ben merged 5 commits from ben/Jobboerse:notice-link-via-login into main 2023-01-28 18:00:15 +01:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit c5ff1234a6 - Show all commits

ensure storage folder exists

Bennet Bleßmann 2022-11-30 21:40:35 +01:00 committed by Bennet Bleßmann
Signed by: ben
GPG key ID: 3BE1A1A3CBC3CF99

View file

@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- missing lines around lists and headings triggering lints in changelog
- new clippy lints
- create storage dir when missing
### Change

View file

@ -654,6 +654,10 @@ impl JobOffers {
let storage = &config.config.data_storage_path;
info!("Loading Job Offers from {}", storage.display());
tokio::fs::create_dir_all(storage)
.await
.map_err(|err| JobofferLoadError::IO(err, storage.clone()))?;
let mut dir = tokio::fs::read_dir(storage)
.await
.map_err(|err| JobofferLoadError::IO(err, storage.clone()))?;