join

fun List<String>.join(separator: CharSequence = "/"): String

Joins this list of strings into a path, adding no leading or trailing separator of its own: a separator the first element starts with, or the last one ends with, is kept.

Extension function on List<String>.

Return

the joined path string

Parameters

separator

the path separator (default "/")