Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call remote command directly if both source and target files are on the same FTP/SSH server #3637

Open
TranceLove opened this issue Nov 22, 2022 · 0 comments
Labels
Area-FTPClient Issues related to FTP client implementation. Area-Ssh/Scp/Sftp Issue-Feature A feature request or improvement.

Comments

@TranceLove
Copy link
Collaborator

TranceLove commented Nov 22, 2022

Is your feature request related to a problem? Please describe.
When both source and target files are on the same FTP/SSH server, we should make use of remote commands to copy/move files solely on the server, without ever touching the client side, to improve copy/move efficiency

Describe the solution you'd like
GenericCopyUtils.copy() may add a shortcut routine so that, when source and target URIs are FTP/SSH URIs and both are on the same host, call cp or mv on the remote directly

Describe alternatives you've considered
N/A

Additional context
Depends on #1347 - we should have better handling, parsing, less error-prone and less complicated implementation of NetCopyClientConnectionPool.ConnectionInfo before talking about this.

@TranceLove TranceLove added Issue-Feature A feature request or improvement. Area-Ssh/Scp/Sftp Area-FTPClient Issues related to FTP client implementation. labels Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-FTPClient Issues related to FTP client implementation. Area-Ssh/Scp/Sftp Issue-Feature A feature request or improvement.
Projects
None yet
Development

No branches or pull requests

1 participant