public void execute() throws IOException, JSchException {
ChannelSftp channel = openSftpChannel();
try {
channel.connect();
try {
SftpATTRS attrs = channel.stat(remoteFile);
if (attrs.isDir() && !remoteFile.endsWith("/")) {
remoteFile = remoteFile + "/";
}
} catch (SftpException ee) {
// Ignored