commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Israel Malachi <isra...@ellipsis.co.il>
Subject (VFS) underlying usage of Jsch Sessions/Channels
Date Tue, 11 Nov 2014 14:24:48 GMT
Hello all

Please consider the following code:

    FileSystemManager fsManager = VFS.getManager();
    FileObject sftpDir =
fsManager.resolveFile("sftp://username:password@host/pub/downloads/");
    FileObject child1 =  sftpDir.getChild("child1.data");
    FileObject child2 =  sftpDir.getChild("child2.data");
    InputStream s1 = child1.getContent().getInputStream();
    InputStream s2 = child2.getContent().getInputStream();

On the Jsch underlying level, were two separated sessions created, or one
session and two channels?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message