Retrieves a list of folders in the Media Manager. To retrieve a list of folders within a specific folder in the Media Manager, specify the specific folder's ID in the parentFolderId
parameter. If no folder is specified, the method retrieves a list of folders within the root folder of the Media Manager.
You can only call this method when authenticated as a Wix app or Wix user identity.
function listFolders(options: ListFoldersOptions): Promise<ListFoldersResponse>;
Options to use when listing folders from the Media Manager.
import { folders } from "@wix/media";
async function listFolders(options) {
const response = await folders.listFolders(options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.