[Draft] Implement Reviewer Notice Link using Login Redirect #40
2 changed files with 5 additions and 0 deletions
ensure storage folder exists
commit
c5ff1234a6
|
|
@ -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
|
- missing lines around lists and headings triggering lints in changelog
|
||||||
- new clippy lints
|
- new clippy lints
|
||||||
|
- create storage dir when missing
|
||||||
|
|
||||||
### Change
|
### Change
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -654,6 +654,10 @@ impl JobOffers {
|
||||||
let storage = &config.config.data_storage_path;
|
let storage = &config.config.data_storage_path;
|
||||||
info!("Loading Job Offers from {}", storage.display());
|
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)
|
let mut dir = tokio::fs::read_dir(storage)
|
||||||
.await
|
.await
|
||||||
.map_err(|err| JobofferLoadError::IO(err, storage.clone()))?;
|
.map_err(|err| JobofferLoadError::IO(err, storage.clone()))?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue