| 589 | } |
| 590 | |
| 591 | bool IsFile(const std::string& path) { |
| 592 | HdfsPathInfo info; |
| 593 | return GetPathInfo(path, &info) && info.kind == FileType::File; |
| 594 | } |
| 595 | |
| 596 | bool GetPathInfo(const std::string& path, HdfsPathInfo* info) { |
| 597 | return GetPathInfoStatus(path, info).ok(); |
no outgoing calls