Skip to content

Checking if ignored dir is in the dir list before removing #1966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

bridadan
Copy link
Contributor

This addresses an issue regarding ignored directories. When traversing the source tree, the .mbedignore files dictate which directories should be "removed" from the traversal list. If this directory hasn't been added to this list before attempting to remove it, an Exception occurs and a traceback is printed to the user.

This PR adds checks before removing dirs from the traversal list in the cases where the added directories are not being looped over exclusively.

@bridadan
Copy link
Contributor Author

@mbed-bot: TEST

HOST_OSES=windows
BUILD_TOOLCHAINS=GCC_ARM,ARM,IAR
TARGETS=K64F,KL25Z,LPC1768,NUCLEO_L053R8,RZ_A1H,NRF51_DK

@mbed-bot
Copy link

[Build 503]
FAILURE: Something went wrong when building and testing.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 17, 2016

#1967 deprecated this one?

@bridadan
Copy link
Contributor Author

I'd like to confirm #1967 fixes the issue on my side, shouldn't take long

@bridadan
Copy link
Contributor Author

#1967 seems to be ok after local testing 👍 Closing this one.

@bridadan bridadan closed this Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants