compile: fix export when artifacts contains a folder by alessio-perugini · Pull Request #2788 · arduino/arduino-cli (original) (raw)

Please check if the PR fulfills these requirements

See how to contribute

What kind of change does this PR introduce?

Fixes the export-dir, when it tries to copy a folder it crashes.

What is the current behavior?

The copy mechanism fails to copy the dir because it's treated as a file, and the compile exits with error code 1

What is the new behavior?

We filter out the directories and copy only exported binaries files.

Does this PR introduce a breaking change, and is titled accordingly?

Other information