> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Should Ignore • AI Agent SDK

> should_ignore: Check if path should be ignored.

# should\_ignore

Method

> This is a method of the [**IgnoreMatcher**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/IgnoreMatcher.md) class in the [**indexing**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/indexing.md) module.

Check if path should be ignored.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def should_ignore(path: str) -> bool
```

## Parameters

**path** `str` *required*

Path to check (relative or absolute)

### Returns

**Returns** `bool`

True if path should be ignored

## Uses

* `basename`

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/knowledge/indexing.py#L205)
>
> `praisonaiagents/knowledge/indexing.py` at line 205


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.