Update FileSystem after saving?

Godot Version 4.2

Hey all! Last piece of the puzzle for my save/load system! I think I have everything figured out, except for one odd little piece. When I save my new custom resource, it doesn’t update in my FileSystem. So I can’t see the updates that happen, and if I try to load a file that I just overwrote I can’t load my changes. If I close Godot and reopen, all the changes are there.

Obviously I can’t keep closing Godot every time I save a new file, that would be a little annoying. So how do I update my FileSystem so I can view my newest files and files I have just overwritten?

You may want to read about the flush() method.

1 Like