incredible-go-core/pkg/io/files/dir_creator.go

11 lines
158 B
Go

package files
import (
"os"
)
func MkdirsAutoPerm(dirLocation string) error {
perm := GetPermForDir(dirLocation)
return os.MkdirAll(dirLocation, perm)
}