"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
docs: note use of regexp filtering prevents directory optimisation
Matthew Vernone11bfacfcf42
diff --git a/docs/content/filtering.md b/docs/content/filtering.mdindex 9ac37256d..f306accf5 100644--- a/docs/content/filtering.md+++ b/docs/content/filtering.md@@ -131,7 +131,11 @@ The regular expressions used are as defined in the [Go regularexpression reference](https://golang.org/pkg/regexp/syntax/). Regularexpressions should be enclosed in `{{` `}}`. They will match only thelast path segment if the glob doesn't start with `/` or the whole path-name if it does.+name if it does. Note that rclone does not attempt to parse the+supplied regular expression, meaning that using any regular expression+filter will prevent rclone from using [directory filter rules](#directory_filter),+as it will instead check every path against+the supplied regular expression(s).Here is how the `{{regexp}}` is transformed into an full regularexpression to match the entire path:@@ -247,7 +251,7 @@ currently a means provided to pass regular expression filter options intorclone directly though character class filter rules contain characterclasses. [Go regular expression reference](https://golang.org/pkg/regexp/syntax/)-### How filter rules are applied to directories+### How filter rules are applied to directories {#directory_filter}Rclone commands are applied to path/file names notdirectories. The entire contents of a directory can be matched@@ -263,6 +267,10 @@ recurse into subdirectories. This potentially optimises access to a remoteby avoiding listing unnecessary directories. Whether optimisation isdesirable depends on the specific filter rules and source remote content.+If any [regular expression filters](#regexp) are in use, then no+directory recursion optimisation is possible, as rclone must check+every path against the supplied regular expression(s).+Directory recursion optimisation occurs if either:* A source remote does not support the rclone `ListR` primitive. local,