MCPcopy
hub / github.com/istio/istio / writeFiles

Function writeFiles

tools/bug-report/pkg/bugreport/bugreport.go:564–569  ·  view source on GitHub ↗
(dir string, files map[string]string, dryRun bool)

Source from the content-addressed store, hash-verified

562}
563
564func writeFiles(dir string, files map[string]string, dryRun bool) {
565 defer logRuntime(time.Now(), "Done writing files for dir %v", dir)
566 for fname, text := range files {
567 writeFile(filepath.Join(dir, fname), text, dryRun)
568 }
569}
570
571func writeFile(path, text string, dryRun bool) {
572 if dryRun {

Callers 2

getFromClusterFunction · 0.85
runAnalyzeFunction · 0.85

Calls 3

logRuntimeFunction · 0.85
NowMethod · 0.80
writeFileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…