Call remote command directly if both source and target files are on the same FTP/SSH server #3637
Labels
Area-FTPClient
Issues related to FTP client implementation.
Area-Ssh/Scp/Sftp
Issue-Feature
A feature request or improvement.
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, callcp
ormv
on the remote directlyDescribe 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.The text was updated successfully, but these errors were encountered: