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

Method TempDir

pkg/watch/temp_dir_fixture.go:174–180  ·  pkg/watch/temp_dir_fixture.go::TempDirFixture.TempDir
(prefix string)

Source from the content-addressed store, hash-verified

172}
173
174func (f *TempDirFixture) TempDir(prefix string) string {
175 name, err := os.MkdirTemp(f.dir.Path(), prefix)
176 if err != nil {
177 f.t.Fatal(err)
178 }
179 return name
180}
181
182func (f *TempDirFixture) tearDown() {
183 if f.oldDir != "" {

Calls 1

PathMethod · 0.45