MCPcopy
hub / github.com/rclone/rclone / GetConfig

Function GetConfig

fs/filter/filter.go:680–689  ·  view source on GitHub ↗

GetConfig returns the global or context sensitive config

(ctx context.Context)

Source from the content-addressed store, hash-verified

678
679// GetConfig returns the global or context sensitive config
680func GetConfig(ctx context.Context) *Filter {
681 if ctx == nil {
682 return globalConfig
683 }
684 c := ctx.Value(configContextKey)
685 if c == nil {
686 return globalConfig
687 }
688 return c.(*Filter)
689}
690
691// CopyConfig copies the global config (if any) from srcCtx into
692// dstCtx returning the new context.

Callers 15

ListMethod · 0.92
listMethod · 0.92
newFsFileAddFilterFunction · 0.92
testGETFunction · 0.92
TestHTTPFunctionFunction · 0.92
applyFiltersMethod · 0.92
ArchiveExtractFunction · 0.92
listFileFunction · 0.92
ArchiveCreateFunction · 0.92
purge.goFile · 0.92
TestMarchFunction · 0.92
makeListDirMethod · 0.92

Calls

no outgoing calls

Tested by 8

testGETFunction · 0.74
TestHTTPFunctionFunction · 0.74
TestMarchFunction · 0.74
TestGetFsNamedFileOKFunction · 0.74
TestExecuteJobWithFilterFunction · 0.74
testListDirSortedFunction · 0.74
TestWalkRDirTreeExcludeFunction · 0.74
TestGetConfigFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…