See the API for File, in particular the listFiles method