How do i get all the objects in a content broswer 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…
thanks
Michele