Fix ENOENT error in LocalFileSystem.clean()

This commit is contained in:
HirokiUchikawa 2018-05-31 14:09:36 +09:00
parent 16715673c3
commit a835f9f0cb
1 changed files with 6 additions and 0 deletions

View File

@ -133,6 +133,12 @@ LocalFileSystem.prototype.clean = function(activeNodes){
}
return result;
},[]));
}).catch(function(err){
if(err.code == 'ENOENT') {
return when.resolve();
}else{
return when.reject(err);
}
});
}