(paths []string)
| 92 | } |
| 93 | |
| 94 | func (f *TempDirFixture) JoinPaths(paths []string) []string { |
| 95 | joined := make([]string, len(paths)) |
| 96 | for i, p := range paths { |
| 97 | joined[i] = f.JoinPath(p) |
| 98 | } |
| 99 | return joined |
| 100 | } |
| 101 | |
| 102 | // Returns the full path to the file written. |
| 103 | func (f *TempDirFixture) WriteFile(path string, contents string) string { |