github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/ioutil/is_not_exist.go (about) 1 // Copyright 2016 Keybase Inc. All rights reserved. 2 // Use of this source code is governed by a BSD 3 // license that can be found in the LICENSE file. 4 5 package ioutil 6 7 import ( 8 "os" 9 10 "github.com/pkg/errors" 11 ) 12 13 // IsNotExist is like os.IsNotExist, but handles wrapped errors, too. 14 func IsNotExist(err error) bool { 15 return os.IsNotExist(errors.Cause(err)) 16 }