Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I'm using pattern
to scan a folder, from gitingore description
ignore all files in the build/ directory
this should exclude everything under test1 folder, but the run result shows the line dose not work, the result still show all contents under test 1 folder.
[An Example Folder Structure]
spec = pathspec.PathSpec.from_lines(pathspec.GitIgnorePattern, SCAN_PATTERN.splitlines())
Can you please have a look? Thanks.
@029xue Try switching the order of your patterns to:
If you have
A second possibility is that the Windows paths are not matching properly. Can you try just using:
And let me know if that excludes the
@029xue I made some changes, and with my testing it should work now. Please note that the order of your patterns should be:
To first include all
The changes are only reflected on Github right now. If my changes work for you, let me know and I'll update the version on PyPI.