get all the objects in a content browser directory

Hello
I wonder how to get all the objects in a content browser directory…
I would like to make an array with all my materials and another one with all my textures…

Basically I want to make a widget which I will use to let the user change materials, and in stead write the code fore every single material I would like to make UE4 to all the materials in a specific directory.

thanks
Michele