← back to roto on ba3a.dev

validateList

fun validateList(names: List<String>, what: String)

Throws unless names is non-empty, each follows the rule, and no two differ only in case. Templates may lower- or upper-case a name, and Windows and macOS file systems ignore case, so names differing only in case would collide on disk.