LogoPixi’VN
coreFunctions

Function: folderName()

> folderName(url): string

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:4867

Gets the name of parent folder in a url.

Parameters

url

string

URL of a file.

Returns

string

Name of the parent folder, or the file itself if it has no parent folder.

On this page