FileSystemManager.mkdir
Requires:
BaseKit≥2.4.3
Platforms:
iOSAndroid
Method signature
FileSystemManager.mkdir(params: )Description
Create a directory; requires file read/write permissions
Parameters
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
dirPath | string | Yes | - | Path of the directory to create (local path) |
recursive | boolean | No | false | Whether to create parent directories recursively before creating this directory. If a parent directory already exists, it will not be created. For example, if dirPath is a/b/c/d and recursive is true, it creates directory a, then b under a, and so on until d under a/b/c. Default: false |
complete | () => void | No | - | Completion callback (executed on both success and failure) |
success | () => void | No | - | Callback on successful API call |
fail | (params: Object) => void | No | - | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None