cdUp method

void cdUp()

Change directory to parent folder. If it is a file, the parent folder will be returned. Returns the new path.

Implementation

void cdUp() {
  if (isFile) {
    // Do nothing
  } else {
    _path = Directory(_path).parent.path;
  }
}