(fileName string)
| 9 | ) |
| 10 | |
| 11 | func MkdirForFile(fileName string) error { |
| 12 | if err := os.MkdirAll(filepath.Dir(fileName), os.ModePerm); err != nil { |
| 13 | return err |
| 14 | } |
| 15 | return nil |
| 16 | } |
| 17 | |
| 18 | func OpenTempFile(fullPath string) (f *os.File, err error) { |
| 19 | fileNameTmp := fullPath + "." + strconv.Itoa(rand.Int()) |
no outgoing calls
no test coverage detected