This action returns a list of folder paths in a vault, sorted alphabetically.
Parameters
Vault
The vault to work in.
Type: Vault reference
Return Value
Text (list)
Examples
Most of the time you would use this action to get a list of all your folder paths, then loop over the results list using the built-in “Repeat With” block. The loop variable Repeat Item
will contain a single folder path.
![](/_astro/afo-list-folders.CFDiXHxj_W3hsA.webp)
If you want to filter the list, I recommend using the “Filter List” action from Sindre Sorhus’s excellent Actions app (no relation) or a built-in “Repeat With” loop with a contained “If” action.
Related Links
- Search the Actions for Obsidian community forum for "List All Folders"