Comparing version 0.0.2 to 0.0.3
@@ -15,3 +15,3 @@ var fs = require('fs'); | ||
var args = arguments, | ||
_path; | ||
_path = ''; | ||
if (list.length > 0) { | ||
@@ -33,3 +33,3 @@ _path = list.shift(); | ||
} else { | ||
callback && callback(null); | ||
callback && callback(null, _path); | ||
} | ||
@@ -36,0 +36,0 @@ })(); |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"readmeFilename": "README.md", | ||
@@ -22,0 +22,0 @@ "bugs": { |
@@ -18,9 +18,3 @@ # mkdir-p | ||
mkdir.sync('/a/b/c/d', function(err){ | ||
if(err){ | ||
console.log(err); | ||
} else { | ||
console.log(ok); | ||
} | ||
}); | ||
mkdir.sync('/a/b/c/d'); | ||
``` | ||
@@ -33,3 +27,9 @@ | ||
mkdir('/a/b/c/d') | ||
mkdir('/a/b/c/d', function(err){ | ||
if(err){ | ||
console.log(err); | ||
} else { | ||
console.log(ok); | ||
} | ||
}) | ||
``` |
2118