| 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) { |
nothing calls this directly
no test coverage detected