| 564 | hdfsFS client_; |
| 565 | |
| 566 | void PathInfoToFileInfo(const HdfsPathInfo& info, FileInfo* out) { |
| 567 | if (info.kind == FileType::Directory) { |
| 568 | out->set_type(FileType::Directory); |
| 569 | out->set_size(kNoSize); |
| 570 | } else if (info.kind == FileType::File) { |
| 571 | out->set_type(FileType::File); |
| 572 | out->set_size(info.size); |
| 573 | } |
| 574 | out->set_mtime(ToTimePoint(info.last_modified_time)); |
| 575 | } |
| 576 | |
| 577 | Result<std::shared_ptr<io::OutputStream>> OpenOutputStreamGeneric( |
| 578 | const std::string& path, bool append) { |
nothing calls this directly
no test coverage detected