code: function mkdirs(dir, mode) {
  		dir = path.normalize(dir);
  
  		try {
  			fs.mkdirSync(dir, mode);
  		} catch(err) {
  			if(err.code == "ENOENT") {
  				var index = dir.lastIndexOf(path.sep);
  
  				if(index > 0) {
  					var parentPath = dir.substring(0, index);
  					mkdirs(parentPath, mode);
  					mkdirs(dir, mode);
  				} else {
  					throw err;
  				}
  			} else if(err.code == "EEXIST") {
  				return;
  			} else {
  				throw err;
  			}
  		}
  	}
docs: from wrench-js