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
- The PR has no duplicates (please search among the Pull Requests
before creating one) - The PR follows
our contributing guidelines - Tests for the changes have been added (for bug fixes / features)
- Docs have been added / updated (for bug fixes / features)
UPGRADING.mdhas been updated with a migration guide (for breaking changes)configuration.schema.jsonupdated if new parameters are added.
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.