normalize

@JvmName(name = "normalizedFileOf")
fun File.normalize(): File(source)

Removes all . and resolves all possible .. for the provided path.