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:
parent
052c792391
commit
a63445f92a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user