public void cdup ( ) throws SftpStatusException , SshException { SftpFile cd = sftp . getFile ( cwd ) ; SftpFile parent = cd . getParent ( ) ; if ( parent != null ) cwd = parent . getAbsolutePath ( ) ; }
Change the working directory to the parent directory