# format_display_path

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/file_ops/format_display_path)

Format a path for display.

## Signature

```python
format_display_path(
    path_str: str | None,
) -> str
```

## Returns

`str`

Formatted path string suitable for display.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/d1c6946218b4f0f86ab7b02b6bb6af1e4b75cede/libs/code/deepagents_code/file_ops.py#L152)