MCPcopy
hub / github.com/docker/compose / NewDirAtSlashTmp

Function NewDirAtSlashTmp

pkg/watch/temp.go:50–56  ·  view source on GitHub ↗

NewDirAtSlashTmp creates a new TempDir at /tmp

(prefix string)

Source from the content-addressed store, hash-verified

48
49// NewDirAtSlashTmp creates a new TempDir at /tmp
50func NewDirAtSlashTmp(prefix string) (*TempDir, error) {
51 fullyResolvedPath, err := filepath.EvalSymlinks("/tmp")
52 if err != nil {
53 return nil, err
54 }
55 return NewDirAtRoot(fullyResolvedPath, prefix)
56}
57
58// d.NewDir creates a new TempDir under d
59func (d *TempDir) NewDir(prefix string) (*TempDir, error) {

Callers

nothing calls this directly

Calls 1

NewDirAtRootFunction · 0.85

Tested by

no test coverage detected