diff --git a/rest/db-ignores-get.rst b/rest/db-ignores-get.rst index a6508a28b..29dc7eaa7 100644 --- a/rest/db-ignores-get.rst +++ b/rest/db-ignores-get.rst @@ -2,19 +2,17 @@ GET /rest/db/ignores ==================== Takes one parameter, ``folder``, and returns the content of the -``.stignore`` as the ``ignore`` field. A second field, ``patterns``, -provides a compiled version of all included ignore patterns in the form -of regular expressions. Excluded items in the ``patterns`` field have a -nonstandard ``(?exclude)`` marker in front of the regular expression. +``.stignore`` as the ``ignore`` field. A second field, ``expanded``, +provides a list of strings which represent globbing patterns described by gobwas/glob (based on standard wildcards) that match the patterns in ``.stignore`` and all the includes. If appropriate these globs are prepended by the following modifiers: ``!`` to negate the glob, ``(?i)`` to do case insensitive matching and ``(?d)`` to enable removing of ignored files in an otherwise empty directory. .. code-block:: json { "ignore": [ - "/Backups" + "(?i)/Backups" ], - "patterns": [ - "(?i)^Backups$", - "(?i)^Backups/.*$" + "expanded": [ + "(?i)Backups", + "(?i)Backups/**" ] }