We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00430fc commit c67198eCopy full SHA for c67198e
compiler.js
@@ -361,8 +361,7 @@ ArduinoCompiler.prototype.clear = function (leaveCoreAlone, cb) {
361
leaveCoreAlone = undefined;
362
}
363
364
- // TODO: check for build preferences and
365
- // clear core.a only if new core need to be built
+ // TODO: check for build preferences and clear core.a only if new core need to be built
366
// and leaveCoreAlone === undefined
367
368
common.pathWalk (this.buildFolder, function (err, files) {
@@ -379,6 +378,9 @@ ArduinoCompiler.prototype.clear = function (leaveCoreAlone, cb) {
379
378
380
381
for (var fileName in files) {
+ if (files[fileName].folder) {
382
+ continue;
383
+ }
384
385
if (path.join (this.buildFolder, 'core.a') === fileName && leaveCoreAlone) {
386
// skip
0 commit comments