mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-19 10:25:47 -04:00
13 lines
187 B
Go
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
|
|
}
|