1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-25 02:24:42 -05:00
sub2clash/utils/os.go

17 lines
206 B
Go
Raw Normal View History

2023-09-13 01:47:22 -04:00
package utils
import (
"os"
)
func MKDir(dir string) error {
if _, err := os.Stat(dir); os.IsNotExist(err) {
err := os.MkdirAll(dir, os.ModePerm)
if err != nil {
return err
}
}
return nil
}