add readdir example.