Skip to main content
Version: v3.x

mkdir

Create Folder

Type

(path: string) => result

Parameters

path

| Description | Required | Type | Default | | ----=--------- | -------- | -------- | ------- | | directory path | yes | string | - |

result

DescriptionType
The result of the operation, 0 means successnumber

Code example

const result = hmFS.mkdir('path/to/dir')
console.log(result)