MCPcopy Create free account
hub / github.com/Shopify/goose / createFile

Function createFile

profiler/profiler.go:111–123  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

109}
110
111func createFile(name string) (*os.File, error) {
112 err := os.MkdirAll(path.Dir(name), 0755)
113 if err != nil {
114 return nil, err
115 }
116
117 f, err := os.Create(name)
118 if err != nil {
119 return nil, err
120 }
121
122 return f, nil
123}

Callers 2

StartMethod · 0.85
StartMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected