checkFolderExistenceAsync static method

Future<bool> checkFolderExistenceAsync({
  1. required String folderPath,
})



Implementation

static Future<bool> checkFolderExistenceAsync({
  required String folderPath,
}) async {
  final Directory myDirectory = Directory(folderPath);

  final bool exists = await myDirectory.exists();

  if (exists) {
    return true;
  } else {
    return false;
  }
}