fs: Add directory to optional Purge interface - fixes #1891
- add a directory to the optional Purge interface - fix up all the backends - add an additional integration test to test for the feature - use the new feature in operations.Purge Many of the backends had been prepared in advance for this so the change was trivial for them.
This commit is contained in:
parent
c2f3949ded
commit
a2afa9aadd
31 changed files with 244 additions and 222 deletions
|
@ -49,7 +49,7 @@ func TestFeaturesList(t *testing.T) {
|
|||
func TestFeaturesEnabled(t *testing.T) {
|
||||
ft := new(Features)
|
||||
ft.CaseInsensitive = true
|
||||
ft.Purge = func(ctx context.Context) error { return nil }
|
||||
ft.Purge = func(ctx context.Context, dir string) error { return nil }
|
||||
enabled := ft.Enabled()
|
||||
|
||||
flag, ok := enabled["CaseInsensitive"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue