precisamente...

opendir()
readdir()


se puoi usare PHP, ti invito a chiedere sul relativo forum