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

11 lines
158 B
Go
Raw Normal View History

2024-06-29 23:54:17 +02:00
package files
import (
"os"
)
func MkdirsAutoPerm(dirLocation string) error {
perm := GetPermForDir(dirLocation)
2024-06-29 23:54:17 +02:00
return os.MkdirAll(dirLocation, perm)
}