Rebase and fix failing tests in mkdirp
This commit is contained in:
parent
be9e0b50a8
commit
cf29eef1ef
|
@ -365,7 +365,7 @@ define(function(require) {
|
||||||
callback = callback || function(){};
|
callback = callback || function(){};
|
||||||
|
|
||||||
if(!path) {
|
if(!path) {
|
||||||
callback(new Errors.EInvalid());
|
callback(new Errors.EINVAL('missing path argument'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (path === '/'){
|
else if (path === '/'){
|
||||||
|
@ -413,7 +413,7 @@ define(function(require) {
|
||||||
}
|
}
|
||||||
//not a directory
|
//not a directory
|
||||||
else if (stat.type === 'FILE') {
|
else if (stat.type === 'FILE') {
|
||||||
callback(new Errors.ENotDirectory());
|
callback(new Errors.ENOTDIR());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue