[Bug] [Eyes] Ignore pattern doesn't work for cmake-build-*
when it is intended to be a folder
#9560
Closed
2 of 3 tasks
Labels
Milestone
Search before asking
Apache SkyWalking Component
License Tools (apache/skywalking-eyes)
What happened
If a pattern with
*
is added topaths
orpaths-ignore
when it's intended to be a folder, it doesn't work as expected. Becausedoublestar
module only treat patterns end with/
as folder.For example, specifying
cmake-build-*
doesn't excludecmake-build-debug
folder.What you expected to happen
Files are properly included or excluded.
How to reproduce
Anything else
I think these lines of code are related:
It seems that if the pattern is intended to be a folder while with
*
, thestat
workaround has a hole. We may write:instead. But it may has other corner cases. I don't think of it deeply, though.
cc @kezhenxu94 @fgksgf
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: