plerup / makeEspArduino

A makefile for ESP8266 and ESP32 Arduino projects
GNU Lesser General Public License v2.1
513 stars 131 forks source link

Ensure a lib path exists before assuming it is a file. #165

Closed pugmajere closed 3 years ago

pugmajere commented 3 years ago

Without this, a path like "/libraries" (that probably doesn't exist on most Linux installs), will get converted into "/", and cause 'find' to scan the entire filesystem. This is somewhat unfortunate when there is a large, slow filesystem mounted, such as a NAS.

This isn't really a complete fix, since symlinks will still be treated somewhat surprisingly, but it's definitely nice to not scan an extra 15T of storage.

plerup commented 3 years ago

Good point! A major update is in the works, I will include this change as well in that

plerup commented 3 years ago

Handled in latest commit (wildcard must also be allowed)