INT-2387 changed mkdir() method in Session to return boolean

This commit is contained in:
Oleg Zhurakousky
2012-01-05 17:13:54 -05:00
parent 58602d4802
commit 15e64b707b
6 changed files with 15 additions and 11 deletions

View File

@@ -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) {