8 Program to Create and Delete Directory in NodeJS

Program:

var fs = require('fs');



fs.mkdirSync('demo');



console.log('Demo Directory Create');



fs.rmdirSync('demo');



console.log('Demo Directory Delete');


Output:

Create and Delete Directory in NodeJS

Previous
Next Post »