diff options
author | Jakob Borg <jakob@nym.se> | 2016-07-20 21:37:04 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2016-07-20 21:37:23 +0200 |
commit | 7226f28a83945d9ce5a66d7542facec9d050d793 (patch) | |
tree | 2af6fee28ac338ea354e1a082e5a2f10973f1973 /users/ignoring.rst | |
parent | fe92574af868096e2fd1a71cd71308fb3bdc9e1e (diff) | |
download | syncthing-docs-7226f28a83945d9ce5a66d7542facec9d050d793.zip |
users/ignoring: Correct .DS_Store in example
Diffstat (limited to 'users/ignoring.rst')
-rw-r--r-- | users/ignoring.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/users/ignoring.rst b/users/ignoring.rst index 1558a1e..c19926c 100644 --- a/users/ignoring.rst +++ b/users/ignoring.rst @@ -20,9 +20,9 @@ If some files should not be synchronized to other nodes, a file called ``#include`` files that *are* synchronized between nodes. All patterns are relative to the repository root. -.. note:: +.. note:: - Note that ignored files can block removal of an otherwise empty directory. + Note that ignored files can block removal of an otherwise empty directory. See below for the (?d) prefix to allow deletion of ignored files. Patterns @@ -104,6 +104,7 @@ Given a directory layout:: and an ``.stignore`` file with the contents:: + (?d).DS_Store !frobble !quuz foo @@ -114,7 +115,7 @@ and an ``.stignore`` file with the contents:: all files and directories called "foo", ending in a "2" or starting with "qu" will be ignored. The end result becomes:: - (?d).DS_Store # ignored, will be deleted if gets in the way of parent directory removal + .DS_Store # ignored, will be deleted if gets in the way of parent directory removal foo # ignored, matches "foo" foofoo # synced, does not match "foo" but would match "foo*" or "*foo" bar/ # synced |