Retrieves a list of folders in the Media Manager.
The listFolders()
function returns a Promise that resolves to information about the specified folders and cursor information.
To retrieve a list of folders within a specific folder in the Media Manager, pass the specific folder's ID in the parentFolderId
parameter. If no folder is specified, the function retrieves only the list of folders within the root folder of the Media Manager.
To retrieve a list of (non-permanently) deleted folders, use the listDeletedFolders()
function.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Options to use when listing folders from the Media Manager.