mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-04 21:55:18 -04:00
15 lines
194 B
Go
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
|
|
}
|