Rebase and fix failing tests in mkdirp

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2014-03-16 11:47:55 -04:00
parent be9e0b50a8
commit cf29eef1ef
1 changed files with 5 additions and 5 deletions

View File

@ -365,7 +365,7 @@ define(function(require) {
callback = callback || function(){};
if(!path) {
callback(new Errors.EInvalid());
callback(new Errors.EINVAL('missing path argument'));
return;
}
else if (path === '/'){
@ -413,7 +413,7 @@ define(function(require) {
}
//not a directory
else if (stat.type === 'FILE') {
callback(new Errors.ENotDirectory());
callback(new Errors.ENOTDIR());
return;
}
});