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

Method GetFileInfoBucket

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

Source from the content-addressed store, hash-verified

646 }
647
648 static Result<FileInfo> GetFileInfoBucket(const GcsPath& path,
649 const google::cloud::Status& status) {
650 if (status.ok()) {
651 return FileInfo(path.bucket, FileType::Directory);
652 }
653 using ::google::cloud::StatusCode;
654 if (status.code() == StatusCode::kNotFound) {
655 return FileInfo(path.bucket, FileType::NotFound);
656 }
657 return internal::ToArrowStatus(status);
658 }
659
660 static Result<FileInfo> GetFileInfoObject(
661 const GcsPath& path, const google::cloud::StatusOr<gcs::ObjectMetadata>& meta) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected