code: private String resolveRemotePath(String path) throws SftpStatusException {
  		verifyConnection();
  
  		String actual;
  		if (!path.startsWith("/") && !path.startsWith(cwd)
  				&& !isWindowsRoot(path) && !startsWithCustomRoot(path)) {
  			actual = cwd + (cwd.endsWith("/") ? "" : "/") + path;
  		} else {
  			actual = path;
  		}
  
  		if (!actual.equals("/") && actual.endsWith("/")) {
  			return actual.substring(0, actual.length() - 1);
  		} else {
  			return actual;
  		}
  	}
docs: returns the canonical form of path, if path doesn't start with one of
  '/';cwd;a customRoot; or is a WindowsRoot then prepend cwd to path
  
  @param path
  @return canonical form of path
  @throws SftpStatusException