Skip to content

Commit 63a50dd

Browse files
Prefix temp:// Directory with "bevy"
To aid with discoverability of the temp folder. Note that the directory is explicitly _not_ logged (e.g., `trace!`) to avoid logging sensitive data (e.g., user names) Co-Authored-By: Ricky Taylor <[email protected]>
1 parent 516f5e6 commit 63a50dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_asset/src/temp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub(crate) fn get_temp_source(
3838
Some(resource) => resource,
3939
None => match temporary_file_path {
4040
Some(path) => TempDirectory::Persist(path.into()),
41-
None => TempDirectory::Delete(tempfile::tempdir()?),
41+
None => TempDirectory::Delete(tempfile::TempDir::with_prefix("bevy")?),
4242
},
4343
};
4444

0 commit comments

Comments
 (0)