Skip to main content
def list_folders() -> List[Folder]

Returns

  • List[Folder]: Collection of folders the current auth context can access.
Each Folder now surfaces hierarchy details:
  • full_path: Canonical path (e.g., /projects/alpha/specs)
  • parent_id: Parent folder ID (if any)
  • depth: Depth in the tree (root = 1)
  • child_count: Number of direct children when provided

Examples

from morphik import Morphik

db = Morphik()

for folder in db.list_folders():
    print(folder.name, folder.id)