Facepunch / sbox-issues

178 stars 12 forks source link

[Asset Browser] The Browser doesn't automatically update if a file is deleted via file explorer #6697

Open Retroeer opened 1 month ago

Retroeer commented 1 month ago

Describe the bug

If you have a file, say a text file, in your Assets\ path, and are in that folder in the asset browser, and then delete that text file through file explorer, asset browser does not care and will pretend it still exists, its gone my guy, move on.

To Reproduce

  1. Create a file, anywhere in the project really
  2. Be in the that folder in Asset Browser
  3. Delete it via file explorer
  4. Asset browser does not care

Expected behavior

Asset Browser should update upon file removal, this is actually an issue if you have a folder in your root directory, and then delete it via file explorer (you cant delete it in asset browser), that folder will now stay there until you basically restart the editor or close and reopen the asset browser

Media/Files

File deleted in this case was Assembly.cs Image

Additional context

No response

Retroeer commented 1 week ago

This seems to be better now, you no longer have to reload your editor, but if the change occurs in your folder you're in it won't automatically refresh, which causes issues with creating a new code file via the asset browser

Retroeer commented 5 days ago

Oh and if you add a folder you have to close the asset browser and reopen it, if anyone was running into that, a bit faster than restarting the editor