File: error.go

package info (click to toggle)
golang-github-hlandau-goutils 0.0~git20160722.0.0cdb66a-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 160 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
package os

import "errors"

var ErrNotEmpty = errors.New("directory not empty")

// Returns true if the error is ErrNotEmpty or the underlying POSIX error code
// error is ENOTEMPTY. Currently always returns false on Windows.
func IsNotEmpty(err error) bool {
	return isNotEmpty(err)
}