rclone/backend/local
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
..
about_unix.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
about_windows.go Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00
fadvise_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
fadvise_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
lchtimes.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
lchtimes_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
local.go filter: Fix incorrect filtering with UseFilter context flag and wrapping backends 2022-09-05 16:19:50 +01:00
local_internal_test.go filter: Fix incorrect filtering with UseFilter context flag and wrapping backends 2022-09-05 16:19:50 +01:00
local_test.go backend: allow wrapping backend tests to run in make quicktest 2022-06-29 17:30:37 +01:00
metadata.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
metadata_bsd.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
metadata_linux.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
metadata_other.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
metadata_unix.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
metadata_windows.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
read_device_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
read_device_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
remove_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
remove_test.go local: retry remove on Windows sharing violation error #2202 2018-04-07 17:36:26 +01:00
remove_windows.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
setbtime.go all: fix spelling across the project 2022-08-30 11:16:26 +02:00
setbtime_windows.go all: fix spelling across the project 2022-08-30 11:16:26 +02:00
symlink.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
symlink_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
tests_test.go local: refactor default os encoding out from local backend into shared encoder lib 2021-08-19 20:14:50 +02:00
xattr.go local: disable xattr support if the filesystems indicates it is not supported 2022-08-09 09:27:56 +01:00
xattr_unsupported.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00