Double stars (**) between slashes does not work in ignore rules (.gitignore)


I am using the latest version of Insync (v3.8.7.50505) on Windows.

The Insync documentation ( says: “The Ignore Rules supports full gitignore syntax.”

The double stars (/**/) between slashes syntax for .gitignore does not seem to work.

In the .gitignore documentation, “a slash followed by two consecutive asterisks then a slash matches zero or more directories. For example, “a/**/b” matches “a/b”, “a/x/b”, “a/x/y/b” and so on.”

To reproduce the issue:

  1. Create a rule “mydir/**/*.ext” in Insync
  2. Create a folder “mydir” anywhere under an already synced folder
  3. Create a file “myfile.ext” under “mydir”
  4. Create a folder “anotherdir” under “mydir”
  5. Create a file “mysecondfile.ext” under “anotherdir”

Both files were synced (i.e. not ignored).


Hello! Interesting. I just copied the steps to reproduce the issue, and it seems like the files were ignored as expected (btw - I’m on Windows 11). :thinking: Do you mind sending your log files to with the link to this post? The logs should be in %AppData%\Insync. Please include the logs.db and out.txt files.

If they’re too big to attach, you can upload it in the cloud and send me a shared link to download. Please set the link sharing permissions to Anyone with the link.

Thank you!