MCPcopy
hub / github.com/syncthing/syncthing / IsNotExist

Function IsNotExist

lib/fs/filesystem.go:191–193  ·  view source on GitHub ↗

IsNotExist is the equivalent of os.IsNotExist

(err error)

Source from the content-addressed store, hash-verified

189
190// IsNotExist is the equivalent of os.IsNotExist
191func IsNotExist(err error) bool {
192 return errors.Is(err, ErrNotExist)
193}
194
195// ErrNotExist is the equivalent of os.ErrNotExist
196var ErrNotExist = fs.ErrNotExist

Callers 15

ccCheckEncryptionMethod · 0.92
handleAutoAcceptsMethod · 0.92
RequestMethod · 0.92
LoadIgnoresMethod · 0.92
TestIssue3164Function · 0.92
revertMethod · 0.92

Calls 1

IsMethod · 0.45

Tested by 11

TestIssue3164Function · 0.74
TestIssue4903Function · 0.74
TestBadPatternsFunction · 0.74
TestNotExistingErrorFunction · 0.74
TestRenameOrCopyFunction · 0.74
testCaseFSStatFunction · 0.68