implemented Directory::const_iterator in terms of Directory::iterator