12 lines
169 B
Go
12 lines
169 B
Go
|
package langext
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
func FileExists(filename string) bool {
|
||
|
info, err := os.Stat(filename)
|
||
|
if os.IsNotExist(err) {
|
||
|
return false
|
||
|
}
|
||
|
return !info.IsDir()
|
||
|
}
|