Skip to content

FileSystemManager.mkdir ​

JS
    FileSystemManager.mkdir(Object object)

Creates a directory

Parameters

  • Object object: Input parameters. See the table below for details.

object properties:

PropertyValue TypeRequiredDescription
dirPathstringYesPath of the directory to create
recursivebooleanNoWhether 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.
successfunctionNoCallback for a successful call
failfunctionNoCallback for a failed call
completefunctionNoCallback for when the call ends