read list of files in a directory. doesnt PHP have an OOP way to do this?