Created
July 13, 2019 13:21
-
-
Save danielgospodinow/3d3f687985d7642c01813931b59ef901 to your computer and use it in GitHub Desktop.
Screentopia - ensure image folder function
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
function ensureImagesFolder(imageDirectory) { | |
if (!fs.existsSync(imageDirectory)) { | |
console.log("Creating folder for image storage ..."); | |
fs.mkdirSync(imageDirectory); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment