Update /rest/db/ignores for 0.13 changes

GitHub-Pull-Request: https://github.com/syncthing/docs/pull/174
This commit is contained in:
imsodin
2016-06-03 13:09:36 +00:00
committed by Audrius Butkevicius
parent 8748339201
commit c6b994a815
+6 -8
View File
@@ -2,19 +2,17 @@ GET /rest/db/ignores
==================== ====================
Takes one parameter, ``folder``, and returns the content of the Takes one parameter, ``folder``, and returns the content of the
``.stignore`` as the ``ignore`` field. A second field, ``patterns``, ``.stignore`` as the ``ignore`` field. A second field, ``expanded``,
provides a compiled version of all included ignore patterns in the form 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.
of regular expressions. Excluded items in the ``patterns`` field have a
nonstandard ``(?exclude)`` marker in front of the regular expression.
.. code-block:: json .. code-block:: json
{ {
"ignore": [ "ignore": [
"/Backups" "(?i)/Backups"
], ],
"patterns": [ "expanded": [
"(?i)^Backups$", "(?i)Backups",
"(?i)^Backups/.*$" "(?i)Backups/**"
] ]
} }