MCPcopy Create free account
hub / github.com/apache/arrow / PathInfoToFileInfo

Method PathInfoToFileInfo

cpp/src/arrow/filesystem/hdfs.cc:566–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

ToTimePointFunction · 0.85

Tested by

no test coverage detected