INT-2387 changed mkdir() method in Session to return boolean
This commit is contained in:
@@ -151,13 +151,14 @@ class SftpSession implements Session<LsEntry> {
|
||||
}
|
||||
}
|
||||
|
||||
public void mkdir(String remoteDirectory) throws IOException {
|
||||
public boolean mkdir(String remoteDirectory) throws IOException {
|
||||
try {
|
||||
this.channel.mkdir(remoteDirectory);
|
||||
}
|
||||
catch (SftpException e) {
|
||||
throw new NestedIOException("failed to create remote directory '" + remoteDirectory + "'.", e);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean exists(String path) {
|
||||
|
||||
Reference in New Issue
Block a user