> ## Documentation Index
> Fetch the complete documentation index at: https://morphik.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# get_folder_by_name

> Create a folder scope from a name or path

> [tab] Sync
>
> ```python theme={null}
> def get_folder_by_name(
>     name: str,
> ) -> Folder
> ```

> [tab] Async
>
> ```python theme={null}
> async def get_folder_by_name(
>     name: str,
> ) -> Folder
> ```

## Parameters

* `name` (str): Folder name or canonical path

## Returns

* `Folder`: Folder scope object for subsequent operations

## Examples

> [tab] Sync
>
> ```python theme={null}
> from morphik import Morphik
>
> db = Morphik()
> folder = db.get_folder_by_name("/projects/alpha")
> docs = folder.list_documents()
> ```

> [tab] Async
>
> ```python theme={null}
> from morphik import AsyncMorphik
>
> async with AsyncMorphik() as db:
>     folder = await db.get_folder_by_name("/projects/alpha")
>     docs = await folder.list_documents()
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.