Double asteriks did not work with (?d) prefix

The line (?d).DS_Store but not the line (?d)**.DS_Store worked for removing a directory with that ignored file. I see no explanation for this in the Ignoring Files documentation, and should ** not be treated as a regular pattern?

As far as I know that should work, but also match a bit more than you might want. E.g., **.DS_Store matches foo/bar/baz.DS_Store

1 Like