fs/fs.go

14 lines
214 B
Go
Raw Normal View History

2015-08-09 16:20:47 -07:00
package fs
import "os"
// Exists returns if a file exists
func Exists(path string) bool {
if _, err := os.Stat(path); err != nil {
return false
} else if os.IsNotExist(err) {
return false
}
return true
}