# resolve_physical_path

> **Function** in `deepagents_code`

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

Convert a virtual/relative path to a physical filesystem path.

## Signature

```python
resolve_physical_path(
    path_str: str | None,
    assistant_id: str | None,
) -> Path | None
```

## Returns

`Path | None`

Resolved physical Path, or None if path is empty or resolution fails.

---

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