MCPcopy Index your code
hub / github.com/helm/helm / writeFile

Function writeFile

pkg/chart/v2/util/create.go:818–823  ·  view source on GitHub ↗
(name string, content []byte)

Source from the content-addressed store, hash-verified

816}
817
818func writeFile(name string, content []byte) error {
819 if err := os.MkdirAll(filepath.Dir(name), 0755); err != nil {
820 return err
821 }
822 return os.WriteFile(name, content, 0644)
823}
824
825func validateChartName(name string) error {
826 if name == "" || len(name) > maxChartNameLength {

Callers 4

TestCreate_OverwriteFunction · 0.70
makeTestChartArchiveFunction · 0.70
SaveDirFunction · 0.70
CreateFunction · 0.70

Calls 2

DirMethod · 0.65
WriteFileMethod · 0.45

Tested by 2

TestCreate_OverwriteFunction · 0.56
makeTestChartArchiveFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…