CreateDirectory create the directory.
(dir string)
| 96 | |
| 97 | // CreateDirectory create the directory. |
| 98 | func CreateDirectory(dir string) (err error) { |
| 99 | if _, err = os.Stat(dir); err != nil { |
| 100 | if os.IsNotExist(err) { |
| 101 | if err = os.MkdirAll(dir, 0755); err != nil { |
| 102 | return |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | return |
| 107 | } |
no outgoing calls
searching dependent graphs…