MCPcopy Index your code
hub / github.com/cortexproject/cortex / copyFileToSharedDir

Function copyFileToSharedDir

integration/util.go:51–58  ·  view source on GitHub ↗
(s *e2e.Scenario, src, dst string)

Source from the content-addressed store, hash-verified

49}
50
51func copyFileToSharedDir(s *e2e.Scenario, src, dst string) error {
52 content, err := os.ReadFile(filepath.Join(getCortexProjectDir(), src))
53 if err != nil {
54 return errors.Wrapf(err, "unable to read local file %s", src)
55 }
56
57 return writeFileToSharedDir(s, dst, content)
58}
59
60func getServerTLSFlags() map[string]string {
61 return map[string]string{

Calls 3

getCortexProjectDirFunction · 0.85
writeFileToSharedDirFunction · 0.85
JoinMethod · 0.80