diff --git a/paths/funcs.go b/paths/funcs.go index 0bf01e7..802b96e 100644 --- a/paths/funcs.go +++ b/paths/funcs.go @@ -164,7 +164,7 @@ func RealPathExists(path *string) (exists bool, err error) { } if _, err = os.Stat(*path); err != nil { - if !errors.Is(err, fs.ErrNotExist) { + if errors.Is(err, fs.ErrNotExist) { err = nil } return