Update /rest/db/ignores for 0.13 changes
GitHub-Pull-Request: https://github.com/syncthing/docs/pull/174
This commit is contained in:
committed by
Audrius Butkevicius
parent
8748339201
commit
c6b994a815
@@ -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/**"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user