If errors for which os.IsExist() or os.IsNotExist() would have returned true have been wrapped using fmt.Errorf()'s "%w" verb, os.IsExist() and os.IsNotExist(), not having been retrofitted to use errors.Is(), will return false. Use errors.Is() to check if an error is an os.ErrExist or os.ErrNotExist error instead of calling os.IsExist() or os.IsNotExist(). Signed-off-by: Nalin Dahyabhai <nalin@redhat.com> |
||
---|---|---|
.. | ||
mount.go | ||
mount_unsupported.go | ||
util.go |