Skip to content

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