WTF os.IsExist
This commit is contained in:
parent
b02992c13d
commit
e234dfaca4
|
@ -51,7 +51,7 @@ func (cf *configFile) read() ([]byte, error) {
|
|||
|
||||
func (cf *configFile) isExist() bool {
|
||||
_, err := os.Stat(cf.path)
|
||||
return os.IsExist(err)
|
||||
return (err == nil)
|
||||
}
|
||||
|
||||
func (cf *configFile) mkdirp() error {
|
||||
|
|
Loading…
Reference in New Issue