checkDirectoryExists function

void checkDirectoryExists(
  1. String file
)

Implementation

void checkDirectoryExists(String file) {
  if (!Directory(file).existsSync()) {
    Console.setTextColor(Color.RED.id);
    Console.write("$file not found\n");
    exit(-1);
  }
}