Method description:
Synchronized version of fs.mkdir().
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
Example:
Source code: