jw
fun paths(base: File, vararg pathSegments: String): File { var result = base for (pathSegment in pathSegments) { result = File(result, pathSegment) } return result }