I can't get ! to work as expected in .stignore

I have a syncthing shared directory .bak, it’s shared between homepi and q957. At the homepi end I have an .stignore file as follows:-

! homepi
*

Shouldn’t this mean that .bak/homepi is synchronised between the two systems? It doesn’t appear to be happening, nothing is synchronised at all.

If I remove the * from .stignore then files get synchronised, it’s as if the * is overriding the homepi entry.

N.B. there is a directory .bak/homepi on homepi with some data in it, both files and subdirectories.

Try removing the space after the exclamation mark.

https://docs.syncthing.net/users/ignoring.html

Ah, thank you! That’s fixed it.

I read “Spaces are treated as regular characters, except for leading and trailing spaces, which are automatically trimmed.” as meaning that spaces around the patterns are ignored, but obviously not.

Thanks again.

1 Like

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