+ " to file/directory "
+ dest + " because it is in a different connection");
</BUG>
}
} else {
<BUG>throw new RuntimeIOException("Cannot rename :ssh:" + connection.sshConnectionType.toString().toLowerCase() + ": file/directory " + this

+ " to non-:ssh:"
+ connection.sshConnectionType.toString().toLowerCase() + ": file/directory " + dest);</BUG>
}

SshScpFile sshScpDestFile = (SshScpFile) dest;
if (sshScpDestFile.getConnection() == getConnection()) {
CmdLine mvCmdLine = CmdLine.build(NOCD_PSEUDO_COMMAND).addTemplatedFragment(connection.renameToCommand, getPath(), sshScpDestFile.getPath());
executeAndThrowOnErrorCode(mvCmdLine, "Cannot rename file/directory " + this);
} else {
throw new RuntimeIOException("Cannot rename " + connection.protocolAndConnectionType + " file/directory " + this
+ " to file/directory " + dest + " because it is in a different connection");
