MCPcopy
hub / github.com/zarf-dev/zarf / MakeTempDir

Function MakeTempDir

src/pkg/utils/io.go:34–45  ·  view source on GitHub ↗

MakeTempDir creates a temp directory with the zarf- prefix.

(basePath string)

Source from the content-addressed store, hash-verified

32
33// MakeTempDir creates a temp directory with the zarf- prefix.
34func MakeTempDir(basePath string) (string, error) {
35 if basePath != "" {
36 if err := helpers.CreateDirectory(basePath, helpers.ReadWriteExecuteUser); err != nil {
37 return "", err
38 }
39 }
40 tmp, err := os.MkdirTemp(basePath, tmpPathPrefix)
41 if err != nil {
42 return "", err
43 }
44 return tmp, nil
45}
46
47// GetFinalExecutablePath returns the absolute path to the current executable, following any symlinks along the way.
48func GetFinalExecutablePath() (string, error) {

Callers 15

InspectPackageResourcesFunction · 0.92
PackageDigestFunction · 0.92
pullOCIFunction · 0.92
LoadPackageFunction · 0.92
findImagesFunction · 0.92
GenerateFunction · 0.92
componentFileSourcesFunction · 0.92
deployComponentMethod · 0.92
installChartsMethod · 0.92
installManifestsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected