added Directory::end()