//Create Directory using Javascript const fs = require('fs') const createDirIfNotExists = (dir) =>( Ifs.existsSync(dir) ? fs.mkdirSync(dir) : undefined) createDirIfNotExists( 'test') // creates the directory 'test' if it doesn't exist
No comments:
New comments are not allowed.