Skip to content

change ignoreFile to receive a complete filepath#667

Open
hpacheco wants to merge 7 commits into
jaspervdj:masterfrom
hpacheco:master
Open

change ignoreFile to receive a complete filepath#667
hpacheco wants to merge 7 commits into
jaspervdj:masterfrom
hpacheco:master

Conversation

@hpacheco

@hpacheco hpacheco commented Oct 9, 2018

Copy link
Copy Markdown

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
Copy Markdown
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

hpacheco commented Nov 25, 2018 via email

Copy link
Copy Markdown
Author

@jaspervdj

Copy link
Copy Markdown
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