thecodrr/fdir

Feature request: pass full path to `exclude` function

papb opened this issue · 0 comments

papb commented

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.