-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Finder] Exclude relative to content root if prefixed / #54754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 7.4
Are you sure you want to change the base?
Conversation
]), $finder->in(self::$tmpDir)->getIterator()); | ||
} | ||
|
||
public function testExcludeTopLevelOnly() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the new test case. The top-level foo
has been excluded, but top/foo
and top/foo/file.tmp
are still included, which is what we want the new feature to do.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Thanks for digging into the tests! I'll try to take a closer look at your PR in the week ahead. |
f144128
to
5349a03
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Fixes symfony#28158 Fixes symfony#47431 Related: symfony#26396 Related: symfony#9158 Related: symfony#28410
Signed-off-by: Josh Richards <[email protected]>
Co-authored-by: Oskar Stark <[email protected]>
5349a03
to
f1849f0
Compare
I have got this up-to-date with 7.2 branch, and cherry-picked all the code that I can see from #54752 CI passes. This is an example of the code plus tests that would work with 7.2 |
I had some test enhancements ready to be used against code for this. So this PR to the 7.2 branch has:
top/foo/file.tmp
multi-level directory tree to the set of directories and files used by the Finder unit tests. That demonstrates the current behaviour, so we can ensure that the new feature does not introduce regressions. These tests pass with the existing 7.1 branch code./
will then only exclude that folder name at the root (top) level of the tree./
#54752