Closed toori67 closed 9 years ago
if(err === "AlreadyExists"){
Async.doSequentially(
elem.ownedElements,
function (child) {
return self.generate(child, fullPath, options);
},
false
).then(result.resolve, result.reject);
}
result.reject(err);
check err message and just keep going.
조건을 아래와 같이 합치는 것도 좋을거 같네요
if (!err || err === "AlreadyExists") { ... }
if dir exist, generator code do nothing and stop. Need option to overwrite.
this is from docs
Create a directory