2021-07-28 16:18:38 +00:00
|
|
|
package util
|
|
|
|
|
|
|
|
import "os"
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// MkdirAllX calls os.MkdirAll with the passed permissions
|
|
|
|
// but with +x for a user and a group. This makes the created
|
2021-07-28 16:18:38 +00:00
|
|
|
// dir openable regardless of the passed permissions.
|
|
|
|
func MkdirAllX(path string, perm os.FileMode) error {
|
2023-10-31 11:56:55 +00:00
|
|
|
return os.MkdirAll(path, perm|0o110)
|
2021-07-28 16:18:38 +00:00
|
|
|
}
|