makeDirectory creates a directory if not exists with all user access
(path string)
| 766 | |
| 767 | // makeDirectory creates a directory if not exists with all user access |
| 768 | func makeDirectory(path string) error { |
| 769 | err := os.MkdirAll(path, 0777) |
| 770 | if err != nil { |
| 771 | return err |
| 772 | } |
| 773 | return nil |
| 774 | } |
| 775 | |
| 776 | // SetCoveragePath takes a goCovPath and sets the coverage path accordingly. |
| 777 | // It returns an error if the path is a file or if the path does not exist. |