Support for the new readdir command