Updated readdir example.