Facepunch / sbox-issues

175 stars 12 forks source link

Files with the same name and type obscure each other #4499

Open MD485 opened 9 months ago

MD485 commented 9 months ago

Describe the bug

When you have two files of the same name and asset type only the first instance of the file shows up in the asset view.

To Reproduce

  1. Pick a folder
  2. Make a file called "test.png"
  3. Make a file called "test.jpg" or "test.tga"
  4. View folder in assets browser.

Expected behavior

All files named test with a valid extension should show up in the folder.

Media/Files

image image image image

Additional context

I imagine this only really applies to Images and Audio? I think all the other asset types would have conflicts if two files had the same name in the same folder.

Maybe this is happening because of code written to filter out vdml_c files?

handsomematt commented 9 months ago

png and tga are the same image type, this wouldn't happen with test.vmdl and test.png afaik

MD485 commented 9 months ago

I believe this should only happen for files of the same type.

Multiple 'Image' types in the same folder with the same name. -or- Multiple 'Sound File' types in the same folder with the same name.

Since they're the only asset types I can think of that support multiple extensions. image image

Even the [Show Bullshit Files] option doesn't show both files. image

garrynewman commented 9 months ago

Yeah this kind of sucks, but it isn't something we can fix any time soon