Fix ownership issue by using output_path from archiver
This commit is contained in:
parent
f07be605b7
commit
cc7cf766cd
|
@ -40,7 +40,7 @@ async fn main() -> Result<()> {
|
||||||
if let Some(filename) = path.file_name().and_then(|f| f.to_str()) {
|
if let Some(filename) = path.file_name().and_then(|f| f.to_str()) {
|
||||||
if let Ok(date) = archiver.extract_date_from_filename(filename).await {
|
if let Ok(date) = archiver.extract_date_from_filename(filename).await {
|
||||||
// Check if either Divine Worship or Afternoon Program exists for this date
|
// Check if either Divine Worship or Afternoon Program exists for this date
|
||||||
let year_dir = output_path.join(date.format("%Y").to_string());
|
let year_dir = archiver.output_path.join(date.format("%Y").to_string());
|
||||||
let month_dir = year_dir.join(format!("{}-{}",
|
let month_dir = year_dir.join(format!("{}-{}",
|
||||||
date.format("%m"),
|
date.format("%m"),
|
||||||
date.format("%B")
|
date.format("%B")
|
||||||
|
|
Loading…
Reference in a new issue