> ## 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.

# Has Traversal Component • AI Agent SDK

> has_traversal_component: Check if a path contains directory traversal components.

# has\_traversal\_component

Function

> This function is defined in the [**workspace**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/workspace.md) module.

Check if a path contains directory traversal components.

## Signature

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

## Parameters

**path** `str` *required*

Path string to check

### Returns

**Returns** `bool`

True if path contains '..' or other suspicious patterns

## Uses

* `Path`

## Used By

* [`Workspace.resolve`](../functions/Workspace-resolve)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/workspace/__init__.py#L170)
>
> `praisonaiagents/workspace/__init__.py` at line 170


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