How to use the mkdirSyncRecursive function from wrench

Find comprehensive JavaScript wrench.mkdirSyncRecursive code examples handpicked from public code repositorys.

46
47
48
49
50
51
52
53
54
55
function createDir(tmpDir) {
    try {
        if (existsSync(tmpDir)) {
            wrench.rmdirSyncRecursive(tmpDir)
        }
        wrench.mkdirSyncRecursive(tmpDir)
    } catch (e) {
        return done(e)  
    }
}
fork icon25
star icon127
watch icon8

+ 7 other calls in file