<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Vault`](Vault) › [`getAllFolders`](Vault/getAllFolders) ## Vault.getAllFolders() method Get all folders in the vault. **Signature:** ```typescript getAllFolders(includeRoot?: boolean): TFolder[]; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>includeRoot</code> | <code>boolean</code> | _(Optional)_ Should the root folder (<code>/</code>) be returned | **Returns:** [`TFolder`](TFolder)`[]`