Skip to content
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

convert array to map for matching files/folders #17

Open
dpastoor opened this issue Feb 14, 2017 · 0 comments
Open

convert array to map for matching files/folders #17

dpastoor opened this issue Feb 14, 2017 · 0 comments

Comments

@dpastoor
Copy link
Owner

When implementing #16 I realized, that as of now as it is looping through regex's, a file might be matched by multiple, thereby being appended multiple times to the matched array. Converting to a map would only keep track of the single instance, and we don't care about iteration order.

It could also allow for better ignore options, eg match all but keep file named (x) , where can just lookup and delete file if exists before passing to the removal function

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

No branches or pull requests

1 participant