Created
October 6, 2016 13:20
-
-
Save SET001/5c7d6ee16c23b8038fda6be44f39a252 to your computer and use it in GitHub Desktop.
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
const mkdirp = require('mkdirp') | |
const rmdir = require('rmdir') | |
const fs = require('fs') | |
rmdir('./media/01', (err)=>{ | |
var path = './media/01/f1/' | |
mkdirp(path, (err)=>{ | |
if (err) return err | |
const content = "asdasd" | |
fs.writeFile(path + 'file.jpg', content, (err)=>{ | |
if (err) return false | |
console.log("done") | |
}) | |
}) | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment