Method description:
Create file directories asynchronously. If the directory already exists, an exception will be thrown.
Grammar:
Since this method belongs to the fs module, the fs module needs to be introduced before use (var fs= require(“fs”) )
Receive parameters:
path The directory path to be created
mode Directory permissions (read and write permissions), default 0777
callback callback, passing the exception parameter err
Example:
Source code: