Check that file exists: Difference between revisions

→‎{{header|Go}}: library changes
(→‎{{header|Go}}: library changes)
Line 464:
case err != nil:
fmt.Println(err)
case i.IsRegularIsDir():
fmt.Println(p, "is a regular file")
case i.IsDirectory():
fmt.Println(p, "is a directory")
default:
fmt.Println(p, "exists, but is not a regular file or a directory")
}
}
1,707

edits