# get_source_size

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/pebblo/get_source_size)

Fetch size of source path. Source can be a directory or a file.

## Signature

```python
get_source_size(
    source_path: str,
) -> int
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `source_path` | `str` | Yes | Local path of data source. |

## Returns

`int`

Source size in bytes.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/utilities/pebblo.py#L377)