Hello, could I get a little help with my ignore pattern. I really don’t understand what the letters mean when they are together. But after reading the documentation a few times I came up with this.
(?d).DS_Store**
(?d)._**
I have a shared directory with a mac and pc and I want to ignore the mac ds_store files and thumbnails on all folders, sub folders.
Have I set this up correctly, also adding in the override for deleting them?
(?d).DS_Store definitely is enough. It matches the directory and thus all it’s children too. It’s equivalent to having both (?d).DS_Store and (?d).DS_Store/**. I.e. you don’t need the latter.
For (?d)._ I am not sure what the items actually are you want to match: Is ._ a prefix or a full name? If it’s a prefix, you need (?d)._* to match e.g. ._foo.