var fs=require("fs"),path=require("path"),mkdir=function(i,n){i=path.resolve(i),fs.exists(i,function(r){r?n&&n(null):mkdir(path.dirname(i),function(){fs.mkdir(i,function(i){n&&n(i)})})})};mkdir.sync=function(i){i=path.resolve(i),fs.existsSync(i)||(mkdir.sync(path.dirname(i)),fs.mkdirSync(i))},module.exports=mkdir;