1.

How Will You Create A Directory?

Answer»

Following is the syntax of the METHOD to create a directory:
fs.mkdir(path[, mode], callback)
Parameters
Here is the description of the parameters used:
path - This is the directory name including path.
mode - This is the directory permission to be set. DEFAULTS to 0777.
callback - This is the callback FUNCTION which gets no ARGUMENTS other than a possible exception are given to the completion callback.

Following is the syntax of the method to create a directory:
fs.mkdir(path[, mode], callback)
Parameters
Here is the description of the parameters used:
path - This is the directory name including path.
mode - This is the directory permission to be set. Defaults to 0777.
callback - This is the callback function which gets no arguments other than a possible exception are given to the completion callback.



Discussion

No Comment Found