Files
go-i2p/lib/common/utils.go
2016-01-28 10:16:26 -05:00

15 lines
201 B
Go

package common
import (
"os"
)
// check if a file is there and writeable
func FileExists(fname string) (exists bool) {
_, err := os.Stat(fname)
if err == nil {
exists = true
}
return
}