2021-08-23 13:14:53 +00:00
|
|
|
//go:build !windows
|
2015-04-23 22:55:36 +00:00
|
|
|
// +build !windows
|
|
|
|
|
2018-02-05 21:05:59 +00:00
|
|
|
package system // import "github.com/docker/docker/pkg/system"
|
2015-04-23 22:55:36 +00:00
|
|
|
|
2022-08-27 13:11:27 +00:00
|
|
|
import "os"
|
2015-04-23 22:55:36 +00:00
|
|
|
|
2019-08-08 09:51:00 +00:00
|
|
|
// MkdirAllWithACL is a wrapper for os.MkdirAll on unix systems.
|
2017-06-02 01:59:11 +00:00
|
|
|
func MkdirAllWithACL(path string, perm os.FileMode, sddl string) error {
|
2019-08-08 09:51:00 +00:00
|
|
|
return os.MkdirAll(path, perm)
|
2016-11-04 19:42:21 +00:00
|
|
|
}
|
|
|
|
|
2015-07-28 16:13:12 +00:00
|
|
|
// MkdirAll creates a directory named path along with any necessary parents,
|
|
|
|
// with permission specified by attribute perm for all dir created.
|
2019-08-08 09:51:00 +00:00
|
|
|
func MkdirAll(path string, perm os.FileMode) error {
|
2015-04-23 22:55:36 +00:00
|
|
|
return os.MkdirAll(path, perm)
|
|
|
|
}
|