1
0
mirror of https://github.com/writeas/writeas-cli synced 2025-07-26 23:08:16 +00:00

Fix Exists() test in fileutils

This commit is contained in:
Matt Baer 2018-09-14 19:44:10 +02:00
parent 052c792391
commit a63445f92a

View File

@ -9,7 +9,7 @@ import (
// Exists returns whether or not the given file exists
func Exists(p string) bool {
if _, err := os.Stat(p); err == nil {
if _, err := os.Stat(p); !os.IsNotExist(err) {
return true
}
return false