MCPcopy Create free account
hub / github.com/apache/arrow / CopyFile

Method CopyFile

cpp/src/arrow/filesystem/s3fs.cc:3351–3361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3349}
3350
3351Status S3FileSystem::CopyFile(const std::string& src, const std::string& dest) {
3352 ARROW_ASSIGN_OR_RAISE(auto src_path, S3Path::FromString(src));
3353 RETURN_NOT_OK(ValidateFilePath(src_path));
3354 ARROW_ASSIGN_OR_RAISE(auto dest_path, S3Path::FromString(dest));
3355 RETURN_NOT_OK(ValidateFilePath(dest_path));
3356
3357 if (src_path == dest_path) {
3358 return Status::OK();
3359 }
3360 return impl_->CopyObject(src_path, dest_path);
3361}
3362
3363Result<std::shared_ptr<io::InputStream>> S3FileSystem::OpenInputStream(
3364 const std::string& s) {

Callers 10

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TestCopyFileMethod · 0.45
TestSpecialCharsMethod · 0.45
TEST_FFunction · 0.45
TestBucketFunction · 0.45
TestSASCredentialMethod · 0.45
TEST_FFunction · 0.45

Calls 3

ValidateFilePathFunction · 0.85
CopyObjectMethod · 0.80
OKFunction · 0.50

Tested by 8

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TestCopyFileMethod · 0.36
TestSpecialCharsMethod · 0.36
TEST_FFunction · 0.36
TestBucketFunction · 0.36
TestSASCredentialMethod · 0.36
TEST_FFunction · 0.36