validateRootFolderOption method

void validateRootFolderOption()

Implementation

void validateRootFolderOption() {
  final rootFolderPath = argResults?[rootFolder] as String;
  if (Directory(rootFolderPath).existsSync()) {
    return;
  }
  final _exceptionMessage =
      'Root folder $rootFolderPath does not exist or not a directory.';

  throw InvalidArgumentException(_exceptionMessage);
}