Searches the Media Manager and returns a list of folders that match the terms specified in the parameters.
If no parameters are specified, the method returns all folders in the MEDIA_ROOT
folder.
You can only call this method when authenticated as a Wix app or Wix user identity.
function searchFolders(
options: SearchFoldersOptions,
): Promise<SearchFoldersResponse>;
Options specifying which folders to search.
import { folders } from "@wix/media";
async function searchFolders(options) {
const response = await folders.searchFolders(options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.