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