Skip to content

Commit c67198e

Browse files
committedApr 8, 2015
no more folder remove error
1 parent 00430fc commit c67198e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎compiler.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,7 @@ ArduinoCompiler.prototype.clear = function (leaveCoreAlone, cb) {
361361
leaveCoreAlone = undefined;
362362
}
363363

364-
// TODO: check for build preferences and
365-
// clear core.a only if new core need to be built
364+
// TODO: check for build preferences and clear core.a only if new core need to be built
366365
// and leaveCoreAlone === undefined
367366

368367
common.pathWalk (this.buildFolder, function (err, files) {
@@ -379,6 +378,9 @@ ArduinoCompiler.prototype.clear = function (leaveCoreAlone, cb) {
379378
}
380379

381380
for (var fileName in files) {
381+
if (files[fileName].folder) {
382+
continue;
383+
}
382384

383385
if (path.join (this.buildFolder, 'core.a') === fileName && leaveCoreAlone) {
384386
// skip

0 commit comments

Comments
 (0)
Please sign in to comment.