normalizeAndRelativize

fun Path.normalizeAndRelativize(): Path
fun File.normalizeAndRelativize(): File

Remove all redundant . and .. path elements. Leading .. are also considered redundant.