MCPcopy Index your code
hub / github.com/devspace-sh/devspace / CleanupTempDir

Function CleanupTempDir

e2e/framework/util.go:93–99  ·  view source on GitHub ↗
(initialDir, tempDir string)

Source from the content-addressed store, hash-verified

91}
92
93func CleanupTempDir(initialDir, tempDir string) {
94 err := os.RemoveAll(tempDir)
95 ExpectNoError(err)
96
97 err = os.Chdir(initialDir)
98 ExpectNoError(err)
99}
100
101func CopyToTempDir(relativePath string) (string, error) {
102 dir, err := os.MkdirTemp("", "temp-*")

Callers 15

deploy.goFile · 0.92
init.goFile · 0.92
inject.goFile · 0.92
pullsecrets.goFile · 0.92
proxycommands.goFile · 0.92
command.goFile · 0.92
terminal.goFile · 0.92
portforward.goFile · 0.92
imports.goFile · 0.92
localregistry.goFile · 0.92
render.goFile · 0.92
pipelines.goFile · 0.92

Calls 1

ExpectNoErrorFunction · 0.85

Tested by

no test coverage detected