Skip to content

Commit

Permalink
[fix] path.exists was moved to fs.exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook committed Jul 7, 2012
1 parent c6ae24c commit 6fa9b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/mkdirp.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports.mkdirp = exports.mkdirP = function mkdirP (p, mode, f) {
if (p.charAt(0) != '/') { cb(new Error('Relative path: ' + p)); return }

var ps = path.normalize(p).split('/');
path.exists(p, function (exists) {
fs.exists(p, function (exists) {
if (exists) cb(null);
else mkdirP(ps.slice(0,-1).join('/'), mode, function (err) {
if (err && err.code !== 'EEXIST') cb(err)
Expand Down

0 comments on commit 6fa9b31

Please sign in to comment.