added methods to DirectoryIterator to make it a complete forward iterator