Created
January 8, 2017 16:19
-
-
Save hackjutsu/bc6e9a1345ac050490929c6530978829 to your computer and use it in GitHub Desktop.
Create a directory if not exist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var dir = './tmp'; | |
if (!fs.existsSync(dir)){ | |
fs.mkdirSync(dir); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment