709:			if isSuffixDir(joined, deny) {
710-				shouldIgnore = true
711-				skipReason = SkipReasonExcludeDirectory
712-				break
713-			}
714-		}
715-
716-		if len(f.IncludeDirectoryRegex) != 0 {
717-			shouldIgnore = !slices.ContainsFunc(f.IncludeDirectoryRegex, func(allow *regexp.Regexp) bool {
718-				return allow.MatchString(dir.Name())
719-			})
720-			if shouldIgnore {
721-				skipReason = SkipReasonIncludeDirectoryRegex
722-			} else {
723-				skipReason = ""
724-			}
