I’ve noticed that our nodes are syncing Office temporary files so I’ve decided to start using Ignore Patterns. I’ve read the Wiki over at: https://github.com/syncthing/syncthing/wiki/Ignoring-Files however I can’t seem to get it working.
My .stignore contains: #include .stignorepatterns
The patterns I’ve added to .stignorepatterns are:
~$.doc
~$.docx
~$.ppt
~$.pptx
~$.xls
~$.xlsx
I’ve also tried them with a backslash in front of the ~ and $ characters and it still isn’t working.
I think this is a bug. The matcher converts the glob patterns to regexps, but doesn’t escape $, ^ and probably some more characters that are special in regexps but not in globs. You should be able to work around it by throwing either one or two \ in front of the dollar sign…