hasAllFiles method

bool hasAllFiles(
  1. List<String> filePaths,
  2. String targetDescription
)

Implementation

bool hasAllFiles(List<String> filePaths, String targetDescription) {
  final missing =
      filePaths.where((path) => !common.fileExists(path)).toList();
  if (missing.isEmpty) {
    return true;
  }

  common.logSkipped(
    targetDescription,
    missing.join(", "),
    "required file missing",
  );
  return false;
}