# is_relative_to

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/tools/file_management/utils/is_relative_to)

Check if path is relative to root.

## Signature

```python
is_relative_to(
    path: Path,
    root: Path,
) -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/tools/file_management/utils.py#L8)