Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 267 Bytes
fd = require('path')
fs = require('fs')
mkdirp = module.exports = (path, mode = 0o0775) ->
path = fd.resolve(path)
unless fs.existsSync(path)
try
fs.mkdirSync(path, mode)
catch err
mkdirp(fd.dirname(path), mode)
fs.mkdirSync(path, mode)