Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi! I fixed some code for you! #42

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions vendor/mkdirp.js
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 } if (p.charAt(0) != '/') { cb(new Error('Relative path: ' + p)); return }


var ps = path.normalize(p).split('/'); var ps = path.normalize(p).split('/');
path.exists(p, function (exists) { fs.exists(p, function (exists) {
if (exists) cb(null); if (exists) cb(null);
else mkdirP(ps.slice(0,-1).join('/'), mode, function (err) { else mkdirP(ps.slice(0,-1).join('/'), mode, function (err) {
if (err && err.code !== 'EEXIST') cb(err) if (err && err.code !== 'EEXIST') cb(err)
Expand All @@ -22,7 +22,7 @@ exports.mkdirpSync = exports.mkdirPSync = function mkdirPSync (p, mode) {
if (p.charAt(0) != '/') { throw new Error('Relative path: ' + p); return; } if (p.charAt(0) != '/') { throw new Error('Relative path: ' + p); return; }


var ps = path.normalize(p).split('/'), var ps = path.normalize(p).split('/'),
exists = path.existsSync(p); exists = fs.existsSync(p);


function tryMkdirSync () { function tryMkdirSync () {
try { fs.mkdirSync(p, mode); } try { fs.mkdirSync(p, mode); }
Expand Down