hrefCommonFirstComponent method
Returns a File to the directory containing all links, if there is such a directory.
Implementation
File? hrefCommonFirstComponent() => this
.map((it) => it.href.removePrefix("/").substringBefore("/"))
.distinct()
.takeIf((it) => it.length == 1)
?.firstOrNull
?.let((it) => File(it));