X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.core%2Fsrc%2Forg%2Fargeo%2Fssh%2FSftp.java;h=da10b961fd3792fbedf14f959c1fb1dce853d411;hb=c718f8be43b6ee3b1ba111c2a22c9037e35b872f;hp=3ad3e985578e232bd59968e8ef5c67992d63f8ed;hpb=5c6333d04de4985c349197852414faa0f4ee33ee;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.core/src/org/argeo/ssh/Sftp.java b/org.argeo.core/src/org/argeo/ssh/Sftp.java index 3ad3e9855..da10b961f 100644 --- a/org.argeo.core/src/org/argeo/ssh/Sftp.java +++ b/org.argeo.core/src/org/argeo/ssh/Sftp.java @@ -5,13 +5,18 @@ import java.net.URI; import java.nio.file.FileSystem; import java.nio.file.Path; -import org.apache.sshd.client.subsystem.sftp.SftpFileSystem; +import org.apache.sshd.client.subsystem.sftp.fs.SftpFileSystem; +/** Create an SFTP {@link FileSystem}. */ public class Sftp extends AbstractSsh { private URI uri; private SftpFileSystem fileSystem; + public Sftp(String username, String host, int port) { + this(AbstractSsh.toUri(username, host, port)); + } + public Sftp(URI uri) { this.uri = uri; openSession(uri);