EnsureDir creates a directory if it doesn't exist.
(path string)
| 147 | |
| 148 | // EnsureDir creates a directory if it doesn't exist. |
| 149 | func EnsureDir(path string) error { |
| 150 | return os.MkdirAll(path, 0755) |
| 151 | } |
| 152 | |
| 153 | // EnsureAllDirs creates all necessary directories. |
| 154 | func EnsureAllDirs() error { |
no outgoing calls