vfs: add context parameter to New() for config propagation

Add a ctx parameter to vfs.New() so callers can pass in context
carrying ConfigInfo and FilterInfo. The context is stripped of
cancellation but config and filter values are preserved into a fresh
background context.
This commit is contained in:
Nick Craig-Wood
2026-04-13 12:48:38 +01:00
parent 9f2edc3077
commit 7b8994ab32
22 changed files with 37 additions and 28 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ func newWebDAV(ctx context.Context, f fs.Fs, opt *Options, vfsOpt *vfscommon.Opt
// override auth
w.opt.Auth.CustomAuthFn = w.auth
} else {
w._vfs = vfs.New(f, vfsOpt)
w._vfs = vfs.New(ctx, f, vfsOpt)
}
w.server, err = libhttp.NewServer(ctx,