glob()
dovrebbe essere quello che ti serve...

ciao