forked from TrueCloudLab/rclone
filtering docs: clarify /
referencing root of remote in filters, not root of local drive
This commit is contained in:
parent
36d411c25d
commit
6580d9478e
1 changed files with 4 additions and 3 deletions
|
@ -29,9 +29,10 @@ The patterns used to match files for inclusion or exclusion are based
|
||||||
on "file globs" as used by the unix shell.
|
on "file globs" as used by the unix shell.
|
||||||
|
|
||||||
If the pattern starts with a `/` then it only matches at the top level
|
If the pattern starts with a `/` then it only matches at the top level
|
||||||
of the directory tree, relative to the root of the remote.
|
of the directory tree, **relative to the root of the remote** (not
|
||||||
If it doesn't start with `/` then it is matched starting at the
|
necessarily the root of the local drive). If it doesn't start with `/`
|
||||||
**end of the path**, but it will only match a complete path element:
|
then it is matched starting at the **end of the path**, but it will
|
||||||
|
only match a complete path element:
|
||||||
|
|
||||||
file.jpg - matches "file.jpg"
|
file.jpg - matches "file.jpg"
|
||||||
- matches "directory/file.jpg"
|
- matches "directory/file.jpg"
|
||||||
|
|
Loading…
Reference in a new issue