|
a/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/utils/SSHManager.java |
|
b/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/utils/SSHManager.java |
|
... |
|
... |
157 |
|
157 |
|
158 |
ChannelSftp sftpChannel = (ChannelSftp) channel;
|
158 |
ChannelSftp sftpChannel = (ChannelSftp) channel;
|
159 |
try {
|
159 |
try {
|
160 |
sftpChannel.lstat(path.toString()); // if dir not exists an exception is thrown
|
160 |
sftpChannel.lstat(path.toString()); // if dir not exists an exception is thrown
|
161 |
}catch (SftpException e) {
|
161 |
}catch (SftpException e) {
|
162 |
throw new SSHManagerException(path.toString()+" does not exists!" +e.getLocalizedMessage());
|
162 |
throw new SSHManagerException("Directory '"+path.toString()+"' does not exist on remote machine. " +e.getLocalizedMessage()+"!");
|
163 |
}
|
163 |
}
|
164 |
}
|
164 |
}
|
165 |
}
|
165 |
}
|