> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: getFolder(folderId: string) # Method package: wixMediaV2 # Method menu location: wixMediaV2 --> folders --> getFolder # Method Link: https://dev.wix.com/docs/velo/apis/wix-media-v2/folders/get-folder.md # Method Description: Gets information from a specific folder in the Media Manager. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get a folder (dashboard page code) ```javascript import { folders } from 'wix-media.v2'; /* Sample folderId value: '30ed8f8a8f1e4a99b82c516cb212192f' */ async function myGetFolderFunction(folderId) { try { const folder = await folders.getFolder(folderId); console.log('Successfully retrieved folder:', folder); return folder; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * { * "_createdDate": "2023-08-22T08:31:06.000Z", * "_id": "30ed8f8a8f1e4a99b82c516cb212192f", * "_updatedDate": "2023-08-22T08:31:06.000Z", * "displayName": "test2", * "parentFolderId": "302fc049d70c41dea33fa4a27ab481ba", * "state": "OK" * } */ ``` ## Get a folder (export from backend code) ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { folders } from 'wix-media.v2'; import { elevate } from 'wix-auth'; /* Sample folderId value: '30ed8f8a8f1e4a99b82c516cb212192f' */ export const myGetFolderFunction = webMethod(Permissions.Anyone, async (folderId) => { try { const elevatedGetFolder = elevate(folders.getFolder); const folder = await elevatedGetFolder(folderId); console.log('Successfully retrieved folder:', folder); return folder; } catch (error) { console.error(error); // Handle the error } }); /* Promise resolves to: * { * "_createdDate": "2023-08-22T08:31:06.000Z", * "_id": "30ed8f8a8f1e4a99b82c516cb212192f", * "_updatedDate": "2023-08-22T08:31:06.000Z", * "displayName": "test2", * "parentFolderId": "302fc049d70c41dea33fa4a27ab481ba", * "state": "OK" * } */ ``` ---