rclone/backend
Nick Craig-Wood bd787e8f45 filter: Fix incorrect filtering with UseFilter context flag and wrapping backends
In this commit

8d1fff9a82 local: obey file filters in listing to fix errors on excluded files

We started using filters in the local backend so the user could short
circuit troublesome files/directories at a low level.

However this caused a number of integration tests to fail. This turned
out to be in backends wrapping the local backend. For example the
combine backend test failed because it changes the paths passed to the
local backend so they no longer match the paths in the current filter.

To fix this, a new feature flag `FilterAware` was added and the
UseFilter context flag is only passed to backends which support it. As
the wrapping backends don't support the flag, this fixes the problems
in the integration tests.

In future the wrapping backends could modify the active filters to
match the path modifications and then they could set the FilterAware
flag.

See #6376
2022-09-05 16:19:50 +01:00
..
alias build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
all build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
amazonclouddrive build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
azureblob build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
b2 all: fix spelling across the project 2022-08-30 11:16:26 +02:00
box all: fix spelling across the project 2022-08-30 11:16:26 +02:00
cache build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
chunker all: fix spelling across the project 2022-08-30 11:16:26 +02:00
combine all: fix spelling across the project 2022-08-30 11:16:26 +02:00
compress all: fix spelling across the project 2022-08-30 11:16:26 +02:00
crypt all: fix spelling across the project 2022-08-30 11:16:26 +02:00
drive filter: Fix incorrect filtering with UseFilter context flag and wrapping backends 2022-09-05 16:19:50 +01:00
dropbox all: fix spelling across the project 2022-08-30 11:16:26 +02:00
fichier all: fix spelling across the project 2022-08-30 11:16:26 +02:00
filefabric all: fix spelling across the project 2022-08-30 11:16:26 +02:00
ftp ftp: add notes on how to avoid deadlocks with concurrency - fixes #6370 2022-09-05 12:11:06 +01:00
googlecloudstorage all: fix spelling across the project 2022-08-30 11:16:26 +02:00
googlephotos onedrive: cleanup brand name 2022-08-30 10:23:29 +02:00
hasher hasher: support metadata 2022-06-29 17:30:37 +01:00
hdfs build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
hidrive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
http docs: skip "Connection" suffix from FTP, SSH/SFTP and HTTP backend names 2022-06-21 23:43:00 +02:00
hubic Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00
internetarchive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
jottacloud all: fix spelling across the project 2022-08-30 11:16:26 +02:00
koofr all: fix spelling across the project 2022-08-30 11:16:26 +02:00
local filter: Fix incorrect filtering with UseFilter context flag and wrapping backends 2022-09-05 16:19:50 +01:00
mailru build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
mega all: fix spelling across the project 2022-08-30 11:16:26 +02:00
memory build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
netstorage all: fix spelling across the project 2022-08-30 11:16:26 +02:00
onedrive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
opendrive build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
pcloud all: fix spelling across the project 2022-08-30 11:16:26 +02:00
premiumizeme build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
putio build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
qingstor build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
s3 all: fix spelling across the project 2022-08-30 11:16:26 +02:00
seafile onedrive: cleanup brand name 2022-08-30 10:23:29 +02:00
sftp docs/sftp: document use of chunk_size option in sftp remote paired with serve sftp 2022-08-31 00:04:04 +02:00
sharefile build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
sia build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
storj build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
sugarsync onedrive: cleanup brand name 2022-08-30 10:23:29 +02:00
swift all: fix spelling across the project 2022-08-30 11:16:26 +02:00
union build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
uptobox all: fix spelling across the project 2022-08-30 11:16:26 +02:00
webdav onedrive: cleanup brand name 2022-08-30 10:23:29 +02:00
yandex build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
zoho all: fix spelling across the project 2022-08-30 11:16:26 +02:00