From 99152982f18c3db9fc8ee68c77572aa676fd2f2b Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Fri, 24 Feb 2023 12:52:44 -0500 Subject: [PATCH] [F] Fix path not found --- backend/src/encoder.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/encoder.rs b/backend/src/encoder.rs index 0811855..0ec4f88 100644 --- a/backend/src/encoder.rs +++ b/backend/src/encoder.rs @@ -53,6 +53,9 @@ impl Encoders { debug!("Done, took {:.2} minutes, copying result...", start.elapsed().as_secs_f32() / 60.0); // Copy results + if let Some(parent) = enc_out.parent() { + fs::create_dir_all(parent)? + } fs::copy(tmp_out, enc_out)?; // Cleanup tmp