folder.getName()

Retrieve the name of the folder.

Syntax

1folder.getName(): Promise<string>

Returns

Promise<String>

A Promise that resolves to a string value of the folder name.

1// Get all Pages and folders
2const pagesAndFolders = await webflow.getAllPagesAndFolders()
3
4for (let folder of pagesAndFolders) {
5
6 const folderName = await folder.getName()
7 const type = folder.type
8 console.log(folderName, type)
9}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny