can't ignore subdir under a subdir

On Linux, I sync a folder called “Sync.”

This folder contains Notes, which contains a folder “private” under it. I want that folder to be ignored and not synced from my Linux computer.

So:

~/Sync/Folder1
~/Sync/Folder2
~/Sync/Notes
  ~/Sync/Notes/info
  ~/Sync/Notes/tech
  ~/Sync/Notes/private

I created .stignore inside ~/Sync which contains /Notes/private

But the folder and its contents are still synced to my macOS, which I do not want.

What am I doing wrong?

This looks correct. Can you try checking the patterns in the Web GUI as well and see if everything looks the same there (e.g. if there are no special characters, spaces, etc. added to the pattern)?

Also, please keep in mind that adding new ignore patterns won’t make Syncthing delete files or directories that have already been synced. You will need to remove them from the other devices manually.

Hi @tomasz86 There was nothing in the ignore pattern in the web GUI under the Notes folder, so I went ahead and added them there as well (clicked on the folder, edit, then ignore patterns, added /Notes/private.

That didn’t work, but then I realized the path is wrong because I’m already inside notes. Went back in there and changed it to just /private in the web GUI. That seem to have done it.

So I probably messed up the path in the file earlier I guess.

1 Like

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