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

Function TempDirAbsolutePath

integration/helpers/file.go:33–41  ·  view source on GitHub ↗

TempDirAbsolutePath wraps `os.MkdirTemp`, ensuring symlinks are expanded before returning the path

(dir string, prefix string)

Source from the content-addressed store, hash-verified

31// TempDirAbsolutePath wraps `os.MkdirTemp`, ensuring symlinks are expanded
32// before returning the path
33func TempDirAbsolutePath(dir string, prefix string) string {
34 tempDir, err := os.MkdirTemp(dir, prefix)
35 Expect(err).NotTo(HaveOccurred())
36
37 tempDir, err = filepath.EvalSymlinks(tempDir)
38 Expect(err).NotTo(HaveOccurred())
39
40 return tempDir
41}
42
43// TempFileAbsolutePath wraps `os.CreateTemp`, ensuring symlinks are expanded
44// before returning the path

Callers 12

path_test.goFile · 0.92
WithHelloWorldAppFunction · 0.85
WithMultiEndpointAppFunction · 0.85
WithNoResourceMatchedAppFunction · 0.85
WithProcfileAppFunction · 0.85
WithCrashingAppFunction · 0.85
WithBananaPantsAppFunction · 0.85
WithEmptyFilesAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected