Files
gosqldump/internal/where/util.go

15 lines
336 B
Go
Raw Normal View History

2024-08-30 11:25:28 +12:00
package where
import (
"github.com/samber/lo"
2024-08-30 12:21:09 +12:00
"hub.cybercinch.nz/guisea/gosqldump/internal/filesystem"
2024-08-30 11:25:28 +12:00
"os"
)
// mkdir creates a directory and all parent directories if they don't exist
// will return the path of the directory
func mkdir(path string) string {
lo.Must0(filesystem.Api().MkdirAll(path, os.ModePerm))
return path
}