Skip to content

Exported files in subfolders are copied to project root #4802

@johanstokking

Description

@johanstokking

Description


Bug

mbed-cli version:
1.2.0

mbed-os sha:
Since #4544 got merged, current master for example: d5108e5a7

Expected behavior
There should be no files copied to project root that are exported to a subfolder already.

Actual behavior
When exporting with mbed-cli with an exporter that exports in subfolders the files are copied to project root. For example, VSCode exports .vscode/{tasks|launch|settings}.json.

Steps to reproduce

$ git clone https://github.com/ARMmbed/mbed-os-example-blinky.git
$ cd mbed-os-example-blinky
$ mbed deploy
$ mbed export -i vscode_gcc_arm -m NRF52_DK --profile mbed-os/tools/profiles/debug.json
$ find . | grep -E '(launch|settings|tasks).json'
./.vscode/launch.json
./.vscode/settings.json
./.vscode/tasks.json
./launch.json
./settings.json
./tasks.json

Those last three files shouldn't be there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions