# stignore - does this do what I think it does?

**URL:** https://forum.syncthing.net/t/stignore-does-this-do-what-i-think-it-does/22557
**Category:** Support
**Created:** [August 7, 2024, 11:34am UTC](https://forum.syncthing.net/t/stignore-does-this-do-what-i-think-it-does/22557 "2024-08-07T11:34:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![borislav](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@borislav](https://forum.syncthing.net/u/borislav)
#### Post date: [August 7, 2024, 11:34am UTC](https://forum.syncthing.net/t/stignore-does-this-do-what-i-think-it-does/22557/1 "2024-08-07T11:34:23Z")

</div>

Hello all

```plaintext
(partial) Source Tree:
Logseq/
   .stignore
   logseq/
     .recycle

```

.stignore contains `**/.recycle`

Syncthing directory entry - Syncthing calls it a folder - is for the top of the source tree ‘Logseq’ (note capitals).

The intent is to stop any ‘.recycle’ directories that appear in the source tree in Logseq and below being transferred to other the remote Syncthing folder related to Logseq. The .recycle directories (zero and above of) could appear anywhere in the subtrees under Logseq.

Have I achieved my goal? Should it be ‘\*\*.recycle’ (without the slash) or something else?

Thank you in advance!

---

<div class="post-metadata">

### Author: ![acolomb](https://forum.syncthing.net/user_avatar/forum.syncthing.net/acolomb/32/11343_2.png) [@acolomb](https://forum.syncthing.net/u/acolomb)
#### Post date: [August 7, 2024, 11:58am UTC](https://forum.syncthing.net/t/stignore-does-this-do-what-i-think-it-does/22557/2 "2024-08-07T11:58:00Z")

</div>

It’s hard for us to tell what you are thinking 😉

Please try to format literals using the pre-formatted text (`</>`) button in the post editor. It avoids misunderstandings because with paths and ignore patterns, every character counts.

For what you want to achieve, I think this will be enough:

```
.recycle

```

It will ignore any file or directory with that name, anywhere in the Syncthing folder. No need for `**` or similar constructs.

Make sure to read the note at the end of [Ignoring Files — Syncthing documentation](https://docs.syncthing.net/users/ignoring.html), there’s a difference if you want to ignore the whole directory or only its contents.

---

<div class="post-metadata">

### Author: ![borislav](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@borislav](https://forum.syncthing.net/u/borislav)
#### Post date: [August 7, 2024, 12:26pm UTC](https://forum.syncthing.net/t/stignore-does-this-do-what-i-think-it-does/22557/3 "2024-08-07T12:26:02Z")

</div>

> [@acolomb](#):
>
> It’s hard for us to tell what you are thinking 😉

I got nothing! 😊That didn’t render quite as I intended!

I’ll correct it now. Thank you again, @acolomb . You are indeed: Very Helpful!

Really appreciated.

---

<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: [September 6, 2024, 12:26pm UTC](https://forum.syncthing.net/t/stignore-does-this-do-what-i-think-it-does/22557/4 "2024-09-06T12:26:08Z")

</div>

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