in kotlin-browser/karakum/build.gradle.kts [101:115]
fun isDirFromWrapperProject(
path: String,
wp: WrapperProject,
): Boolean {
val included = wp.included
if (path in included)
return true
if (included.any { it.startsWith("$path/") })
return true
val basePath = path.substringBefore("/", "")
return basePath in included
}