This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push: new df0febe Remove direct sftp URI instantiation example df0febe is described below commit df0febe9931b8b42360c844aedfc71514ce13d55 Author: Guillaume Nodet <gno...@gmail.com> AuthorDate: Mon Jan 24 22:16:02 2022 +0100 Remove direct sftp URI instantiation example This only works if the file system has been created earlier..., see SSHD-1238 --- docs/sftp.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docs/sftp.md b/docs/sftp.md index 224f7bf..b17c090 100644 --- a/docs/sftp.md +++ b/docs/sftp.md @@ -259,13 +259,6 @@ standard [java.nio](https://docs.oracle.com/javase/8/docs/api/java/nio/package-f system. ```java -// Direct URI -Path remotePath = Paths.get(new URI("sftp://user:password@host/some/remote/path")); -// Releasing the file-system once no longer necessary -try (FileSystem fs = remotePath.getFileSystem()) { - ... work with the remote path... -} - // "Mounting" a file system URI uri = SftpFileSystemProvider.createFileSystemURI(host, port, username, password); try (FileSystem fs = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap())) {