Files
go-i2p/lib/util/checkfile.go
Jeff Becker 0765c8b302 more
2017-08-27 09:59:22 -04:00

13 lines
187 B
Go

package util
import (
"os"
)
// Check if a file exists and is readable etc
// returns false if not
func CheckFileExists(fpath string) bool {
_, e := os.Stat(fpath)
return e == nil
}