diff --git a/crates/bevy_asset/src/processor/log.rs b/crates/bevy_asset/src/processor/log.rs index febe712ed2a5e..0c1c3d93fbade 100644 --- a/crates/bevy_asset/src/processor/log.rs +++ b/crates/bevy_asset/src/processor/log.rs @@ -89,6 +89,10 @@ impl ProcessorTransactionLog { } } + if let Some(parent_folder) = path.parent() { + async_fs::create_dir_all(parent_folder).await?; + } + Ok(Self { log_file: File::create(path).await?, })