// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2026-present Datadog, Inc.

//go:build !windows

package wc

import (
	"errors"
	"syscall"
)

// isErrIsDir reports whether err wraps a "is a directory" error.
func isErrIsDir(err error) bool {
	return errors.Is(err, syscall.EISDIR)
}
