kou opened a new pull request, #39058: URL: https://github.com/apache/arrow/pull/39058
### Rationale for this change `CopyFile()` copies the given source to the given destination. If the given destination has only container (`container`) or has trailing slash (`container/directory/`), base name of the given source is automatically appended. For example: * Source: `container1/directory1/path.txt` * Destination: `container2` * Real destination: `container2/path.txt` (`path.txt` is only appended to `container2`) This is the same behavior as `cp` command. But other filesystem implementations require path not directory as destination. ### What changes are included in this PR? Use `CopyFromUri()` API that should use server-side copy. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
