Skip to content

Commit

Permalink
don't remove root
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Sep 14, 2023
1 parent 9f990b0 commit 6a3aec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_asset/src/processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ impl AssetProcessor {
.await?
&& contains_files;
}
if !contains_files {
if !contains_files && path != "" {
if let Some(writer) = clean_empty_folders_writer {
// it is ok for this to fail as it is just a cleanup job.
let _ = writer.remove_empty_directory(&path).await;
Expand Down

0 comments on commit 6a3aec5

Please sign in to comment.