bevy/crates/bevy_asset/src
Erick Z e7fd0d5241 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 22:45:41 +01:00
..
io Don't panic on temporary files in file watcher (#18462) 2025-03-25 22:45:41 +01:00
processor AssetServer out of bounds protection (#18088) 2025-03-25 22:44:01 +01:00
server AssetServer out of bounds protection (#18088) 2025-03-25 22:44:01 +01:00
asset_changed.rs Generic system config (#17962) 2025-03-12 00:12:30 +00:00
assets.rs Renamed EventWriter::send methods to write. (#17977) 2025-02-23 21:18:52 +00:00
direct_access_ext.rs Improve clarity of existing bevy_assets documentation (#17830) 2025-02-13 19:49:25 +00:00
event.rs Fill out some missing docs for bevy_assets (#17829) 2025-02-13 21:08:09 +00:00
folder.rs Fill out some missing docs for bevy_assets (#17829) 2025-02-13 21:08:09 +00:00
handle.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
id.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
lib.rs AssetServer out of bounds protection (#18088) 2025-03-25 22:44:01 +01:00
loader_builders.rs AssetServer out of bounds protection (#18088) 2025-03-25 22:44:01 +01:00
loader.rs Return an error when direct-nested-loading a subasset (#18213) 2025-03-13 16:36:18 +00:00
meta.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00
path.rs AssetServer out of bounds protection (#18088) 2025-03-25 22:44:01 +01:00
reflect.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00
render_asset.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
saver.rs Remove labeled_assets from LoadedAsset and ErasedLoadedAsset (#15481) 2025-02-10 21:06:37 +00:00
transformer.rs Fill out some missing docs for bevy_assets (#17829) 2025-02-13 21:08:09 +00:00