agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/sftp/SftpRelay.java
/*
     * The SFTP copy method performs a remote copy on a file or folder. Unlike
     * other RemoteDataClients, this call is done purely server side and as such
     * requires no data movement. It should be nearly instantaneous. The down side
     * is that it opens a session to the remote system, so this may run into
     * trouble if the environment isn't stable.
     *
     * @param remotefromdir remote source
     * @param remotetodir remote destination
     * @throws IOException, RemoteDataException
     */
The SFTP copy method performs a remote copy on a file or folder. Unlike
other RemoteDataClients, this call is done purely server side and as such
requires no data movement. It should be nearly instantaneous. The down side
is that it opens a session to the remote system, so this may run into
trouble if the environment isn't stable.

@param remotefromdir remote source
@param remotetodir remote destination
@throws IOException, RemoteDataException
The SFTP copy method performs a remote copy on a file or folder . Unlike other RemoteDataClients this call is done purely server side and as such requires no data movement . It should be nearly instantaneous . The down side is that it opens a session to the remote system so this may run into trouble if the environment isn ' t stable . @param remotefromdir remote source @param remotetodir remote destination @throws IOException RemoteDataException
@Override
    public void copy(String remotefromdir, String remotetodir)
            throws IOException, RemoteDataException, RemoteDataSyntaxException {
        copy(remotefromdir, remotetodir, null);
    }
@ Override public void copy ( String remotefromdir , String remotetodir ) throws IOException , RemoteDataException , RemoteDataSyntaxException { copy ( remotefromdir , remotetodir , null ) ; }
The SFTP copy method performs a remote copy on a file or folder.
The SFTP copy method performs a remote copy on a file or folder .