[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mina-commits
Subject:    [mina-sshd] branch master updated: Remove direct sftp URI instantiation example
From:       gnodet () apache ! org
Date:       2022-01-24 21:16:07
Message-ID: 164305896712.25082.3417090785932105685 () gitbox ! apache ! org
[Download RAW message or body]

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 <gnodet@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())) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic