createDirectory static method

bool createDirectory(
  1. String path
)

Implementation

static bool createDirectory(String path) {
  try {
    Directory(path).createSync(recursive: true);
    return true;
  } catch (e) {
    stderr.writeln('createDirectory error: $e');
    return false;
  }
}