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

Function NewDir

pkg/watch/temp.go:30–32  ·  view source on GitHub ↗

NewDir creates a new TempDir in the default location (typically $TMPDIR)

(prefix string)

Source from the content-addressed store, hash-verified

28
29// NewDir creates a new TempDir in the default location (typically $TMPDIR)
30func NewDir(prefix string) (*TempDir, error) {
31 return NewDirAtRoot("", prefix)
32}
33
34// NewDirAtRoot creates a new TempDir at the given root.
35func NewDirAtRoot(root, prefix string) (*TempDir, error) {

Callers 2

NewTempDirFixtureFunction · 0.85
TestWatchBrokenLinkFunction · 0.85

Calls 1

NewDirAtRootFunction · 0.85

Tested by 1

TestWatchBrokenLinkFunction · 0.68