| 3416 | } |
| 3417 | |
| 3418 | Status S3FileSystem::CopyFile(const std::string& src, const std::string& dest) { |
| 3419 | ARROW_ASSIGN_OR_RAISE(auto src_path, S3Path::FromString(src)); |
| 3420 | RETURN_NOT_OK(ValidateFilePath(src_path)); |
| 3421 | ARROW_ASSIGN_OR_RAISE(auto dest_path, S3Path::FromString(dest)); |
| 3422 | RETURN_NOT_OK(ValidateFilePath(dest_path)); |
| 3423 | |
| 3424 | if (src_path == dest_path) { |
| 3425 | return Status::OK(); |
| 3426 | } |
| 3427 | return impl_->CopyObject(src_path, dest_path); |
| 3428 | } |
| 3429 | |
| 3430 | Result<std::shared_ptr<io::InputStream>> S3FileSystem::OpenInputStream( |
| 3431 | const std::string& s) { |