diff --git a/fileutils/fileutils.go b/fileutils/fileutils.go index 2e728a6..7e4c354 100644 --- a/fileutils/fileutils.go +++ b/fileutils/fileutils.go @@ -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