MCPcopy Index your code
hub / github.com/cloudfoundry/cli / makeTempFile

Function makeTempFile

actor/pluginaction/install.go:179–191  ·  view source on GitHub ↗
(tempDir string)

Source from the content-addressed store, hash-verified

177}
178
179func makeTempFile(tempDir string) (*os.File, error) {
180 tempFile, err := os.CreateTemp(tempDir, "")
181 if err != nil {
182 return nil, err
183 }
184
185 err = tempFile.Close()
186 if err != nil {
187 return nil, err
188 }
189
190 return tempFile, nil
191}

Callers 2

CreateExecutableCopyMethod · 0.85

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected