# Double asteriks did not work with (?d) prefix

**URL:** https://forum.syncthing.net/t/double-asteriks-did-not-work-with-d-prefix/23269
**Category:** Support
**Created:** [November 22, 2024, 7:28pm UTC](https://forum.syncthing.net/t/double-asteriks-did-not-work-with-d-prefix/23269 "2024-11-22T19:28:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Cheer1](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/c/3ab097/32.png) [@Cheer1](https://forum.syncthing.net/u/Cheer1)
#### Post date: [November 22, 2024, 7:28pm UTC](https://forum.syncthing.net/t/double-asteriks-did-not-work-with-d-prefix/23269/1 "2024-11-22T19:28:33Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [November 22, 2024, 7:37pm UTC](https://forum.syncthing.net/t/double-asteriks-did-not-work-with-d-prefix/23269/2 "2024-11-22T19:37:55Z")

</div>

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`

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [December 22, 2024, 7:38pm UTC](https://forum.syncthing.net/t/double-asteriks-did-not-work-with-d-prefix/23269/3 "2024-12-22T19:38:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
