Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalid = os.ErrInvalid ErrPermission = os.ErrPermission ErrExist = os.ErrExist ErrNotExist = os.ErrNotExist ErrClosed = os.ErrClosed )
Portable analogs of some common system call errors.
Errors returned from this package may be tested against these errors with errors.Is.
Functions ¶
func IsExist ¶
IsExist returns a boolean indicating whether the error is known to report that a file or directory already exists. It is satisfied by ErrExist as well as some syscall errors.
This function differs from os.IsExist() in that it can identify an error through wrapping layers.
func IsNotExist ¶
IsNotExist returns a boolean indicating whether the error is known to report that a file or directory does not exist. It is satisfied by ErrNotExist as well as some syscall errors.
This function differs from os.IsNotExist() in that it can identify an error through wrapping layers.
func IsPermission ¶
IsPermission returns a boolean indicating whether the error is known to report that permission is denied. It is satisfied by ErrPermission as well as some syscall errors.
This function differs from os.IsPermission() in that it can identify an error through wrapping layers.
Types ¶
This section is empty.