@Test public void toPath() throws Exception { final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname())); session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginCallback()); assertNotNull(session.toPath("/Users/username")); assertNotNull(session.toPath("/C:\\Users\\Administrator")); assertEquals("C:\\Users\\Administrator", "/C:\\Users\\Administrator".replaceFirst("^/(.:[/\\\\])", "$1")); assertEquals("C:/Users/Administrator", "/C:/Users/Administrator".replaceFirst("^/(.:[/\\\\])", "$1")); session.close(); }
public java.nio.file.Path toPath(final Path file) throws LocalAccessDeniedException { return this.toPath(file.getAbsolute()); }
LocalSession extends Session<FileSystem> { public java.nio.file.Path toPath(final Path file) throws LocalAccessDeniedException { return this.toPath(file.getAbsolute()); } }
LocalSession extends Session<FileSystem> { public java.nio.file.Path toPath(final Path file) throws LocalAccessDeniedException { return this.toPath(file.getAbsolute()); } LocalSession(final Host h);  LocalSession(final Host h, final X509TrustManager trust, final X509KeyManager key); }
LocalSession extends Session<FileSystem> { public java.nio.file.Path toPath(final Path file) throws LocalAccessDeniedException { return this.toPath(file.getAbsolute()); } LocalSession(final Host h);  LocalSession(final Host h, final X509TrustManager trust, final X509KeyManager key); java.nio.file.Path toPath(final Path file); java.nio.file.Path toPath(final String path); @Override void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel); @Override @SuppressWarnings("unchecked") T _getFeature(final Class<T> type); }
LocalSession extends Session<FileSystem> { public java.nio.file.Path toPath(final Path file) throws LocalAccessDeniedException { return this.toPath(file.getAbsolute()); } LocalSession(final Host h);  LocalSession(final Host h, final X509TrustManager trust, final X509KeyManager key); java.nio.file.Path toPath(final Path file); java.nio.file.Path toPath(final String path); @Override void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel); @Override @SuppressWarnings("unchecked") T _getFeature(final Class<T> type);  }