SDK
API Documentation
folder
classes
Foldermapper

Class: FolderMapper

Constructors

new FolderMapper()

new FolderMapper(): FolderMapper

Returns

FolderMapper

Methods

fromApi()

fromApi(folder, folderContent?): Folder

Converts an API result to a Folder model.

Parameters

ParameterType
folderFilteredFolderFragment | FolderFragment
folderContent?Filesystem<Asset | Folder>

Returns

Folder

Defined in

api/mapper/FolderMapper.ts:18 (opens in a new tab)


flattenFolderPath()

static flattenFolderPath(options): FolderPathEntry[]

Flattens a folder path into an array of FolderPathEntry objects that are easier to work with.

Parameters

ParameterType
optionsFlattenFolderPathOptions

Returns

FolderPathEntry[]

Defined in

api/mapper/FolderMapper.ts:61 (opens in a new tab)