// change directory
FileSystemView fsview = session.getFileSystemView();
boolean success = false;
try {
success = fsview.changeWorkingDirectory("..");
} catch (Exception ex) {
LOG.debug("Failed to change directory in file system", ex);
}
if (success) {
String dirName = fsview.getWorkingDirectory().getAbsolutePath();