1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-24 12:34:43 -05:00
sub2clash/utils/os.go
2023-09-13 13:47:22 +08:00

17 lines
206 B
Go

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
}