| 1 | package os |
| 2 | |
| 3 | import "errors" |
| 4 | |
| 5 | var ErrNotEmpty = errors.New("directory not empty") |
| 6 | |
| 7 | // Returns true if the error is ErrNotEmpty or the underlying POSIX error code |
| 8 | // error is ENOTEMPTY. Currently always returns false on Windows. |
| 9 | func IsNotEmpty(err error) bool { |
| 10 | return isNotEmpty(err) |
| 11 | } |