generateAll method

Future<void> generateAll({
  1. required bool force,
  2. Progress progress = noOp,
})

Generate the svg files for all smcat files in folderPath with a matching basename

Throws SMCatException if the file does not exist.

Implementation

Future<void> generateAll(
    {required bool force, Progress progress = noOp}) async {
  final files = await Directory(folderPath).list().toList();
  for (final entity in files) {
    // print('testing $entity');
    final file = entity.path;
    if (getBasename(file) == basename && p.extension(file) == '.smcat') {
      await SMCatFile(file).convert(force: force, progress: progress);
    }
  }
}