# 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/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/file_ops.py#L496)