}
else
{
port = -1;
}
SSHClient ssh = null;
if (port < 0)
{
ssh = new SSHClient(host, user, pwd);
}
else
{
ssh = new SSHClient(host, port, user, pwd);
}
ssh.login();
ssh.copyFrom(tmpFilePath, copyDir);
ssh.logout();
filePath = copyDir + File.separator + tmpFileName;
}
else if ("local".equalsIgnoreCase(tmpSrc.trim()))
{
// Just return the filename here