(p string, contents []byte, mode os.FileMode)
| 726 | } |
| 727 | |
| 728 | func writeFile(p string, contents []byte, mode os.FileMode) error { |
| 729 | if dir := filepath.Dir(p); dir != "." { |
| 730 | if err := os.MkdirAll(dir, 0755); err != nil { |
| 731 | return err |
| 732 | } |
| 733 | } |
| 734 | return os.WriteFile(p, contents, mode) |
| 735 | } |
| 736 | |
| 737 | // reads the product of makeSymlink on Windows |
| 738 | func readPathFromFile(path string) (string, error) { |
no outgoing calls
no test coverage detected