Searches the Media Manager and returns a list of folders that match the terms specified in the parameters.
The searchFolders()
function returns a Promise that resolves to information about the specified folders and cursor information.
If no parameters are specified, the function returns all folders in the MEDIA_ROOT
folder.
You can only call this method when authenticated as a Wix app or Wix user identity.
Options specifying which folders to search.