@Override public RemoteFile open(String filename, Set<OpenMode> mode, FileAttributes attrs) throws IOException { return super.open(cwdify(filename), mode, attrs); }
@Override public void mkdir(String dirname) throws IOException { super.mkdir(cwdify(dirname)); }
@Override public void mkdirs(String path) throws IOException { super.mkdirs(cwdify(path)); }
@Override public String canonicalize(String path) throws IOException { return super.canonicalize(cwdify(path)); }
@Override public void put(String source, String dest) throws IOException { super.put(source, cwdify(dest)); }
@Override public RemoteFile open(String filename, Set<OpenMode> mode) throws IOException { return super.open(cwdify(filename), mode); }
@Override public RemoteFile open(String filename) throws IOException { return super.open(cwdify(filename)); }
@Override public String readlink(String path) throws IOException { return super.readlink(cwdify(path)); }
@Override public void get(String source, String dest) throws IOException { super.get(cwdify(source), dest); }
@Override public FileAttributes lstat(String path) throws IOException { return super.lstat(cwdify(path)); }
@Override public FileAttributes statExistence(String path) throws IOException { return super.statExistence(cwdify(path)); }
@Override public void rmdir(String dirname) throws IOException { super.rmdir(cwdify(dirname)); }
@Override public void truncate(String path, long size) throws IOException { super.truncate(cwdify(path), size); }
@Override public void get(String source, LocalDestFile dest) throws IOException { super.get(cwdify(source), dest); }
@Override public void put(LocalSourceFile source, String dest) throws IOException { super.put(source, cwdify(dest)); }
@Override public void rm(String filename) throws IOException { super.rm(cwdify(filename)); }
@Override public void setattr(String path, FileAttributes attrs) throws IOException { super.setattr(cwdify(path), attrs); }
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); }