| 333 | } |
| 334 | |
| 335 | Status S3FileSystem::NewWritableFile(const string& fname, |
| 336 | std::unique_ptr<WritableFile>* result) { |
| 337 | string bucket, object; |
| 338 | TF_RETURN_IF_ERROR(ParseS3Path(fname, false, &bucket, &object)); |
| 339 | result->reset(new S3WritableFile(bucket, object, this->GetS3Client())); |
| 340 | return Status::OK(); |
| 341 | } |
| 342 | |
| 343 | Status S3FileSystem::NewAppendableFile(const string& fname, |
| 344 | std::unique_ptr<WritableFile>* result) { |