Implement findDirectoryEntry