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

change ignoreFile to receive a complete filepath #667

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

Conversation

hpacheco
Copy link

@hpacheco hpacheco commented Oct 9, 2018

Hi,

When reading the documentation, I was under the impression that the ignoreFile function should receive a complete FilePath from the providerDirectory, but it was actually only receiving the file name -- due to the behavior of the getRecursiveContents function.
I have made a simple extension to getRecursiveContents to mitigate this.
I am not sure if this was intentional or not; if that was the case, then I think that it would deserve a remark in the docs.

Cheers,
hugo

@jaspervdj
Copy link
Owner

Hi @hpacheco -- I understand why you would want this to receive the whole path. However, I can't change this now as this would break the behavior of some websites. Maybe we can add a second option, ignorePath, document the behavior and ignore the file if either of the two functions is true?

@hpacheco
Copy link
Author

hpacheco commented Nov 25, 2018 via email

@jaspervdj
Copy link
Owner

I'm happy to accept a patch that does this but preserving backwards compatibility is essential. Unfortunately I don't really have time to put this together myself.

@LaurentRDC LaurentRDC added the breaking-change Denotes a feature which is a breaking change label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Denotes a feature which is a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants