normalizeAndRelativize

fun File.normalizeAndRelativize(): File

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