(linkContents, destPath string)
| 134 | } |
| 135 | |
| 136 | func (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 | |
| 148 | func (f *TempDirFixture) MkdirAll(path string) { |
| 149 | fullPath := f.JoinPath(path) |