protected static void checkFiles(final String arg) throws IOException {
        var count = new AtomicInteger(0);

        var initialDir = new File(arg, "ci/tests/puppeteer/scenarios/");
        Files.walk(Paths.get(initialDir.getAbsolutePath()), 1)
            .filter(path -> Files.isDirectory(path) && !path.endsWith("scenarios"))
            .forEach(dir -> {
                var scenario = dir.toFile();
                var scenarioConfig = new File(scenario, "script.json");
                if (!scenarioConfig.exists()) {
                    print("Unable to locate scenario configuration file " + scenarioConfig.getAbsolutePath());
                    count.incrementAndGet();
                }
                var script = new File(scenario, "script.js");
                if (!script.exists()) {
                    print("Unable to locate scenario script file " + script.getAbsolutePath());
                    count.incrementAndGet();
                }
            });
        if (count.intValue() > 0) {
            System.exit(1);
        }
    }
This is {@link CheckMissingPuppeteerConfig}.

@author Misagh Moayyed
@since 6.5.0
ci/checks/CheckMissingPuppeteerConfig.java