From aaad0354e6156f6252e46402903a707dfe4d2f9e Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 27 Nov 2016 12:10:52 +0000 Subject: [PATCH] Clarify match rules in filter docs --- docs/content/filtering.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/content/filtering.md b/docs/content/filtering.md index d1d287ca1..960b603d0 100644 --- a/docs/content/filtering.md +++ b/docs/content/filtering.md @@ -120,13 +120,14 @@ Rclone always does a wildcard match so `\` must always escape a `\`. ## How the rules are used ## -Rclone maintains a list of include rules and exclude rules. +Rclone maintains a combined list of include rules and exclude rules. -Each file is matched in order against the list until it finds a match. -The file is then included or excluded according to the rule type. +Each file is matched in order, starting from the top, against the rule +in the list until it finds a match. The file is then included or +excluded according to the rule type. -If the matcher falls off the bottom of the list then the path is -included. +If the matcher fails to find a match after testing against all the +entries in the list then the path is included. For example given the following rules, `+` being include, `-` being exclude,