Don't rescan filesystem when duplicating
Follow-up to #93372
Makes FileSystem Dock not rescan when duplicating a file or directory. I also tweaked the behavior from #97075 - when EditorFileSystem performs an operation, it doesn't emit changed signal immediately, instead queuing it to the next frame. This ensures that batch operations don't cause more updates than necessary.
There are still some problems though, like error prints or crash when deleting duplicated script. Not sure what causes them yet.
Any idea why it's failing on godot-cpp?
Nice job! It's working very well!
Tested with a project with a couple thousand of files... The editor seems frozen and doing nothing before reimporting the assets. Maybe add a progress dialog while actually coping the files.
Demonstration:
https://github.com/user-attachments/assets/05816bb9-4a88-4162-a7ef-0bb9026e1265
Added progress bar for copying files (not pushed yet):
https://github.com/user-attachments/assets/14290a26-e088-4a29-9e9a-e30a4e7d737f
Although feels to me that it makes the operation slower.
Although feels to me that it makes the operation slower.
Be sure to pass false to p_force_refresh parameter of the step method. I saw a big help on performance using that trick.
Ok all should be fixed now.
Very nice the new progress bar. Everything seems to work perfectly.
Thanks!