vmironov
fun paths(base: File, vararg pathSegments: String): File { return pathSegments.fold(base) { file, segment -> File(file, segment) } }