Examples of NativeFileSystemView


Examples of org.apache.sshd.common.file.nativefs.NativeFileSystemView

    public FileSystemView createFileSystemView(Session session) {
        String dir = computeRootDir(session.getUsername());
        Map<String, String> roots = new HashMap<String, String>();
        roots.put("/", dir);
        return new NativeFileSystemView(session.getUsername(), roots, "/");
    }
View Full Code Here

Examples of org.apache.sshd.common.file.nativefs.NativeFileSystemView

    public FileSystemView createFileSystemView(Session session) {
        Map<String, String> roots = new HashMap<String, String>();
        String dir = new File(System.getProperty("karaf.base")).getAbsolutePath();
        roots.put("/", dir);
        return new NativeFileSystemView(session.getUsername(), roots, "/");
    }
View Full Code Here

Examples of org.apache.sshd.common.file.nativefs.NativeFileSystemView

    server.setSubsystemFactories(Arrays.<NamedFactory<Command>> asList(sftp));
    server.setFileSystemFactory(new NativeFileSystemFactory() {

      @Override
      public FileSystemView createFileSystemView(org.apache.sshd.common.Session session) {
        return new NativeFileSystemView(session.getUsername(), false) {

          @Override
          public String getVirtualUserDir() {
            return sftpRootFolder.getAbsolutePath();
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.