gitea-tea/vendor/github.com/adrg/xdg/stat.go

11 lines
147 B
Go

// +build !windows
package xdg
import "os"
func pathExists(path string) bool {
_, err := os.Stat(path)
return err == nil || os.IsExist(err)
}