Files
go-i2p/lib/common/utils.go
2016-01-29 07:22:31 -05:00

15 lines
194 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
}