async ignoredDirHandler(root, stats, next) {
    const relativeDir = path.relative(this.templateContentDir, path.resolve(root, stats.name));
    const dirPath = path.resolve(this.targetDir, relativeDir);
    const conditionalEntry = this.templateConfig?.conditionalGeneration?.[relativeDir];
    let shouldGenerate =  true;
    if (conditionalEntry) {
      shouldGenerate = await isGenerationConditionMet(
        this.templateConfig,
        relativeDir,
        this.templateParams,
        this.asyncapiDocument
      );
      if (!shouldGenerate) {
        log.debug(logMessage.conditionalGenerationMatched(relativeDir));
      }
    }  
    if (!shouldIgnoreDir(relativeDir) && shouldGenerate) {
      xfs.mkdirpSync(dirPath);
    }
    next();
  }
Makes sure that during directory structure generation ignored dirs are not modified
@private

@param  {String} root Dir name.
@param  {String} stats Information about the file.
@param  {Function} next Callback function