@Override public List<RemoteResourceInfo> ls(String path, RemoteResourceFilter filter) throws IOException { final RemoteDirectory dir = getSFTPEngine().openDir(cwdify(path)); try { return dir.scan(filter); } finally { dir.close(); } }
@Override public List<RemoteResourceInfo> ls(String path) throws IOException { return ls(path, null); }
public synchronized void cd(String dirname) throws IOException { final String targetCwd = cwdify(dirname); if (statExistence(targetCwd) == null) { throw new SFTPException(targetCwd + ": does not exist"); } cwd = targetCwd; log.debug("CWD = {}", cwd); }
public StatefulSFTPClient(SFTPEngine engine) throws IOException { super(engine); this.cwd = getSFTPEngine().canonicalize("."); log.debug("Start dir = {}", cwd); }
public synchronized void cd(String dirname) throws IOException { final String targetCwd = cwdify(dirname); if (statExistence(targetCwd) == null) { throw new SFTPException(targetCwd + ": does not exist"); } cwd = targetCwd; log.debug("CWD = {}", cwd); }
public StatefulSFTPClient(SFTPEngine engine) throws IOException { super(engine); this.cwd = getSFTPEngine().canonicalize("."); log.debug("Start dir = {}", cwd); }
public synchronized void cd(String dirname) throws IOException { final String targetCwd = cwdify(dirname); if (statExistence(targetCwd) == null) { throw new SFTPException(targetCwd + ": does not exist"); } cwd = targetCwd; log.debug("CWD = {}", cwd); }
@Override public List<RemoteResourceInfo> ls(String path, RemoteResourceFilter filter) throws IOException { final RemoteDirectory dir = getSFTPEngine().openDir(cwdify(path)); try { return dir.scan(filter); } finally { dir.close(); } }
public synchronized List<RemoteResourceInfo> ls(RemoteResourceFilter filter) throws IOException { return ls(cwd, filter); }
public StatefulSFTPClient(SFTPEngine engine) throws IOException { super(engine); this.cwd = getSFTPEngine().canonicalize("."); log.debug("Start dir = {}", cwd); }
@Override public FileAttributes lstat(String path) throws IOException { return super.lstat(cwdify(path)); }
@Override public List<RemoteResourceInfo> ls(String path, RemoteResourceFilter filter) throws IOException { final RemoteDirectory dir = getSFTPEngine().openDir(cwdify(path)); try { return dir.scan(filter); } finally { dir.close(); } }
public synchronized List<RemoteResourceInfo> ls() throws IOException { return ls(cwd, null); }
@Override public RemoteFile open(String filename, Set<OpenMode> mode) throws IOException { return super.open(cwdify(filename), mode); }
@Override public List<RemoteResourceInfo> ls(String path) throws IOException { return ls(path, null); }
@Override public RemoteFile open(String filename) throws IOException { return super.open(cwdify(filename)); }
@Override public List<RemoteResourceInfo> ls(String path) throws IOException { return ls(path, null); }
@Override public String readlink(String path) throws IOException { return super.readlink(cwdify(path)); }