| 301 | } |
| 302 | |
| 303 | bool IsFile(const std::string& path) { |
| 304 | io::HdfsPathInfo info; |
| 305 | return GetPathInfo(path, &info) && info.kind == io::ObjectType::FILE; |
| 306 | } |
| 307 | |
| 308 | bool GetPathInfo(const std::string& path, io::HdfsPathInfo* info) { |
| 309 | return client_->GetPathInfo(path, info).ok(); |
no outgoing calls