All files are of the same Resource type, I would like to import each file from a folder automatically, that is, without having to specify a specific file name all the time, but just have it import everything in a row until it runs out of files, how do I do this?
P.S. I want to put all files in a dictionary storing <string, Resource>
In this case, the string key is the name of the resource, and its value is the resource itself
You can check my method to this right here. File ui/presets_panel.gd, function _populate_preset_tree. You just loop over all files and load them as resources. You can set the filename as a dictionary key for your use case.