recreateSync method

void recreateSync()

Synchronously and recursively deletes this File, if it exists and then recursively creates it again.

See recreate.

Implementation

void recreateSync() {
  if (existsSync()) {
    deleteSync(recursive: true);
  }

  createSync(recursive: true);
}