createDir static method

void createDir(
  1. String path
)

Creates a directory at the given path if it doesn't exist.

Implementation

static void createDir(String path) {
  final dir = Directory(path);
  if (!dir.existsSync()) {
    dir.createSync(recursive: true);
  }
}