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