Check that file exists: Difference between revisions
Content added Content deleted
(→{{header|Go}}: library changes) |
|||
Line 464: | Line 464: | ||
case err != nil: |
case err != nil: |
||
fmt.Println(err) |
fmt.Println(err) |
||
case i. |
case i.IsDir(): |
||
fmt.Println(p, "is a regular file") |
|||
case i.IsDirectory(): |
|||
fmt.Println(p, "is a directory") |
fmt.Println(p, "is a directory") |
||
default: |
default: |
||
fmt.Println(p, " |
fmt.Println(p, "is a file") |
||
} |
} |
||
} |
} |