FileExisted checks whether filename exists in filesystem
(filename string)
| 55 | |
| 56 | // FileExisted checks whether filename exists in filesystem |
| 57 | func FileExisted(filename string) bool { |
| 58 | _, err := os.Stat(filename) |
| 59 | return err == nil || os.IsExist(err) |
| 60 | } |
no outgoing calls