| 559 | } |
| 560 | |
| 561 | Status DeleteFile(const GcsPath& p) { |
| 562 | if (!p.object.empty()) { |
| 563 | auto stat = client_.GetObjectMetadata(p.bucket, p.object); |
| 564 | if (!stat) return internal::ToArrowStatus(stat.status()); |
| 565 | if (IsDirectory(*stat)) { |
| 566 | return Status::IOError("The given path '", p.full_path, |
| 567 | "' is a directory, use DeleteDir"); |
| 568 | } |
| 569 | } |
| 570 | return internal::ToArrowStatus(client_.DeleteObject(p.bucket, p.object)); |
| 571 | } |
| 572 | |
| 573 | Status Move(const GcsPath& src, const GcsPath& dest) { |
| 574 | if (src == dest) return Status::OK(); |
nothing calls this directly
no test coverage detected