folderExists method

dynamic folderExists(
  1. String filepath
)

Implementation

folderExists(String filepath) async {
  var file = Directory(filepath);
  try {
    bool exists = await file.exists();
    if (!exists) {
      await file.create();
    }
  } catch (e) {
    print(e);
  }
}