canonicalFile

@JvmName(name = "canonicalFileOf")
fun File.canonicalFile(): File(source)

canonicalPath but returns a file