FileSystemManager.mkdir
JS
FileSystemManager.mkdir(Object object)Creates a directory
Parameters
- Object object: Input parameters. See the table below for details.
object properties:
| Property | Value Type | Required | Description |
|---|---|---|---|
| dirPath | string | Yes | Path of the directory to create |
| recursive | boolean | No | Whether to recursively create the parent directories of this directory before creating it. If the corresponding parent directory already exists, that parent directory is not created. For example, if dirPath is a/b/c/d and recursive is true, directory a is created, then directory b is created under a, and so on until directory d is created under a/b/c. |
| success | function | No | Callback for a successful call |
| fail | function | No | Callback for a failed call |
| complete | function | No | Callback for when the call ends |
