combineSafe

fun Path.combineSafe(relativePath: Path): Path(source)
fun File.combineSafe(relativePath: Path): File(source)
fun File.combineSafe(relativePath: String): File(source)

Append a relativePath safely that means that adding any extra .. path elements will not let access anything out of the reference directory (unless you have symbolic or hard links or multiple mount points)

Report a problem