1
mirror of https://github.com/rclone/rclone synced 2024-12-28 21:03:45 +01:00
rclone/backend/drive
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
..
test drive: add --drive-import-formats 2018-09-25 15:20:23 +01:00
drive_internal_test.go filter: Fix incorrect filtering with UseFilter context flag and wrapping backends 2022-09-05 16:19:50 +01:00
drive_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
drive.go filter: Fix incorrect filtering with UseFilter context flag and wrapping backends 2022-09-05 16:19:50 +01:00
upload.go backends: Add context checking to remaining backends #4504 2021-03-16 16:17:22 +00:00