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

Method WriteSymlink

pkg/watch/temp_dir_fixture.go:136–146  ·  view source on GitHub ↗
(linkContents, destPath string)

Source from the content-addressed store, hash-verified

134}
135
136func (f *TempDirFixture) WriteSymlink(linkContents, destPath string) {
137 fullDestPath := f.JoinPath(destPath)
138 err := os.MkdirAll(filepath.Dir(fullDestPath), os.FileMode(0o777))
139 if err != nil {
140 f.t.Fatal(err)
141 }
142 err = os.Symlink(linkContents, fullDestPath)
143 if err != nil {
144 f.t.Fatal(err)
145 }
146}
147
148func (f *TempDirFixture) MkdirAll(path string) {
149 fullPath := f.JoinPath(path)

Callers

nothing calls this directly

Calls 3

JoinPathMethod · 0.95
MkdirAllMethod · 0.80
DirMethod · 0.45

Tested by

no test coverage detected