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

Updated Start.py : Added blacklisted_elements #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rahulraj80
Copy link
Contributor

I am sure there will be more elegant ways to do this, but this seems to work.

Changes:
Added a list : blacklisted_elements where all blacklisted items can be added (with path, for example blacklisted_elements = ["/webrepl_cfg.py", "/lib/microWebSrv.py"] )

Changed the method of append to files and dirs so that there is only one pass over the elements. Earlier, the list expansion was passing over elements twice. Should be faster for large folders.

I am sure there will be more elegant ways to do this, but this seems to work.

Changes:
Added a list : black_listed_elements where all blacklisted items (with path, for example `blacklisted_elements = ["/webrepl_cfg.py", "/lib/microWebSrv.py"] )`

Changed append to files and dirs so that there is only one pass over the elements. Earlier, the list expansion was passing over elements twice. Should be faster for large folders.
I am sure there will be more elegant ways to do this, but this seems to work.

Changes:
Added a list : black_listed_elements where all blacklisted items (with path, for example `blacklisted_elements = ["/webrepl_cfg.py", "/lib/microWebSrv.py"] )`

Changed append to files and dirs so that there is only one pass over the elements. Earlier, the list expansion was passing over elements twice. Should be faster for large folders.
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.

1 participant