checkWorkingDirectory method

Future<bool> checkWorkingDirectory()

Implementation

Future<bool> checkWorkingDirectory() async {
  bool ex = await exists(workingDirectory);
  if (!ex && VPaths.hasParent(workingDirectory)) {
    warn("Working directory $workingDirectory does not exist, going up.");
    goUp();
    return false;
  } else if (!ex) {
    error(
        "Working directory $workingDirectory does not exist and has no parent!");
    return false;
  }

  return true;
}