bevy/crates/bevy_asset/src/io/file
Erick Z 933752ad46
Don't panic on temporary files in file watcher (#18462)
# Objective

Fixes #18461

Apparently `RustRover` creates a temporary file with a tilde like
`load_scene_example.scn.ron~` and at the moment of calling
`.canonicalize()` the file does not exists anymore.

## Solution

Not call `.unwrap()` and return `None` fixes the issue. 

## Testing

- `cargo ci`: OK
- Tested the `scene` example with `file_watcher` feature and it works as
expected.

Co-authored-by: François Mockers <mockersf@gmail.com>
2025-03-25 04:16:33 +00:00
..
file_asset.rs Switch bevy_asset to core::prelude (#17442) 2025-01-20 04:14:48 +00:00
file_watcher.rs Don't panic on temporary files in file watcher (#18462) 2025-03-25 04:16:33 +00:00
mod.rs Fill out some missing docs for bevy_assets (#17829) 2025-02-13 21:08:09 +00:00
sync_file_asset.rs Switch bevy_asset to core::prelude (#17442) 2025-01-20 04:14:48 +00:00