import static com.xebialabs.overthere.OperatingSystemFamily.WINDOWS;
import static com.xebialabs.overthere.ssh.SshConnectionBuilder.SSH_PROTOCOL;
class SshSftpUnixConnection extends SshSftpConnection {
public SshSftpUnixConnection(String type, ConnectionOptions options, AddressPortMapper mapper) {
super(type, options, mapper);
<BUG>checkArgument(os != WINDOWS, "Cannot create a " + SSH_PROTOCOL + ":%s connection to a Windows operating system", sshConnectionType.toString().toLowerCase());
}</BUG>
@Override
protected String pathToSftpPath(String path) {
return path;

import static com.xebialabs.overthere.OperatingSystemFamily.WINDOWS;
import static com.xebialabs.overthere.ssh.SshConnectionBuilder.SSH_PROTOCOL;
class SshSftpUnixConnection extends SshSftpConnection {
public SshSftpUnixConnection(String type, ConnectionOptions options, AddressPortMapper mapper) {
super(type, options, mapper);
checkArgument(os != WINDOWS, "Cannot create a %s connection to a host that is running Windows", protocolAndConnectionType);
}
@Override
protected String pathToSftpPath(String path) {
return path;
