createFolder static method

Future<void> createFolder(
  1. String currentPath,
  2. String name
)

Creates the directory if it doesn't exist.

Implementation

static Future<void> createFolder(String currentPath, String name) async {
  await Directory(currentPath + "/" + name).create();
}