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