Answers for "create path if not exist node js"

0

create path if not exist node js

var fs = require('fs');
var dir = './tmp';

if (!fs.existsSync(dir)){
    fs.mkdirSync(dir);
}
Posted by: Guest on September-01-2021

Code answers related to "create path if not exist node js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language