- Sync
- Async
Returns
List[Folder]: Collection of folders the current auth context can access.
Examples
- Sync
- Async
List all folders available to the client
def list_folders() -> List[Folder]
async def list_folders() -> List[Folder]
List[Folder]: Collection of folders the current auth context can access.from morphik import Morphik
db = Morphik()
for folder in db.list_folders():
print(folder.name, folder.id)
from morphik import AsyncMorphik
async with AsyncMorphik() as db:
folders = await db.list_folders()
for folder in folders:
print(folder.name, folder.id)
Was this page helpful?