This might not be the expected behavior and I wonder if we should introduce a match_basename argument, to control what part of the file path should be matched. With such an argument the user could then do:
EDIT: we agreed this is a bug and the expected output should be:
I would say the current behavior is a bug and it should anyway only match the basename.
So, I would not introduce a new argument, but change the current behavior.
Currently we apply
pattern
to the whole path and not just the basename. This leads to the following behavior:but:
This might not be the expected behavior
and I wonder if we should introduce amatch_basename
argument, to control what part of the file path should be matched. With such an argument the user could then do:EDIT: we agreed this is a bug and the expected output should be: