recreate method

Future<void> recreate()

Recursively deletes this Directory, if it exists and then recursively creates it again.

Implementation

Future<void> recreate() async {
  if (await exists()) {
    await delete(recursive: true);
  }

  await create(recursive: true);
}