diff --git a/red/runtime/nodes/context/localfilesystem.js b/red/runtime/nodes/context/localfilesystem.js index 60098cc91..4909f9c14 100644 --- a/red/runtime/nodes/context/localfilesystem.js +++ b/red/runtime/nodes/context/localfilesystem.js @@ -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); + } }); }