You can do this in BP by setting a Primary Asset Type to Scan in Project settings
Then you can just iterate through the list of classes that are present under the directories you set
I use this for automating items in my game allowing newly created ones to be added to things like chests without having to manually add them to arrays for each new item

