recreate method
Extension methods for making interactions with Directorys easier.
recreate recreates the directory hierarchy from scratch. Deletes all of the old files that may or may not exist within the directory.
Implementation
Future<void> recreate() async {
if (existsSync()) {
await delete(recursive: true);
}
await create(recursive: true);
}