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

Feature request: pass full path to exclude function #46

Closed
papb opened this issue Dec 15, 2020 · 0 comments · Fixed by #45
Closed

Feature request: pass full path to exclude function #46

papb opened this issue Dec 15, 2020 · 0 comments · Fixed by #45

Comments

@papb
Copy link
Contributor

papb commented Dec 15, 2020

Currently, the excludeFn function I pass to crawler.exclude(excludeFn) receives only the basename of the directory as a parameter. I would like to decide to exclude or not based on the full path. I propose passing also path as a second parameter to it, so it is not a breaking change.

thecodrr pushed a commit that referenced this issue Dec 19, 2020
* Fix concurrent async execution

* Fix #42

* Also pass `path` to exclude function

Closes #46

* Update documentation for `exclude`

* Update types for `exclude`
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 a pull request may close this issue.

1 participant