change ignoreFile to receive a complete filepath#667
Open
hpacheco wants to merge 7 commits into
Open
Conversation
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, |
Author
|
Hi Jasper,
I understand, but just need to change it for my solution.
Any solution that offers the option sounds great.
Thanks,
hugo
…On Sat, Nov 24, 2018 at 11:02 PM Jasper Van der Jeugt < ***@***.***> wrote:
Hi @hpacheco <https://github.com/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?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#667 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAIq_px3yL2dRnfJZTJFd_8-pKRgNpCBks5uydAUgaJpZM4XSZuu>
.
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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