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

Method GetFileInfoObject

cpp/src/arrow/filesystem/gcsfs.cc:660–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658 }
659
660 static Result<FileInfo> GetFileInfoObject(
661 const GcsPath& path, const google::cloud::StatusOr<gcs::ObjectMetadata>& meta) {
662 if (meta.ok()) {
663 return ToFileInfo(path.full_path, *meta);
664 }
665 using ::google::cloud::StatusCode;
666 if (meta.status().code() == StatusCode::kNotFound) {
667 return FileInfo(path.full_path, FileType::NotFound);
668 }
669 return internal::ToArrowStatus(meta.status());
670 }
671
672 // The normalize_directories parameter is needed because
673 // how a directory is listed. If a specific path is asked

Callers

nothing calls this directly

Calls 5

FileInfoClass · 0.70
ToArrowStatusFunction · 0.70
okMethod · 0.45
codeMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected