You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to exclude some type of text files like files with names containing a specific word example anything with word file in the name like sample-file.txt. Is there a way to achieve this?
Thank you!
The text was updated successfully, but these errors were encountered:
I don't think that's easily possible at the moment. At least not within lychee itself.
You can try something like this maybe: lycheeverse/lychee#284
The idea is to use find for that or delete the unnecessary files before calling lychee.
There is also an --exclude parameter, but it only excludes URLs within the documents.
That said, it would be nice to add excludes for files or glob patterns in lychee as well.
I could think of --exclude file://path/to/sample-file.txt or even --exclude file://*file*.
But the more generic solution would probably be to fix lycheeverse/lychee#284 and add a ! option so you could write
I think we should move the discussion over to the main lychee repo, as this feature will need to be added to lychee itself. 😄
Will close this in favor of lycheeverse/lychee#284.
Hi, I have a use case where I want to exclude specific files from being checked in the link checker. Currently my args are as below:
I want to exclude some type of text files like files with names containing a specific word example anything with word
file
in the name likesample-file.txt
. Is there a way to achieve this?Thank you!
The text was updated successfully, but these errors were encountered: