2021-08-23 09:14:53 -04:00
|
|
|
//go:build !windows
|
2015-04-23 18:55:36 -04:00
|
|
|
// +build !windows
|
|
|
|
|
2018-02-05 16:05:59 -05:00
|
|
|
package system // import "github.com/docker/docker/pkg/system"
|
2015-04-23 18:55:36 -04:00
|
|
|
|
2022-08-27 09:11:27 -04:00
|
|
|
import "os"
|
2015-04-23 18:55:36 -04:00
|
|
|
|
2019-08-08 05:51:00 -04:00
|
|
|
// MkdirAllWithACL is a wrapper for os.MkdirAll on unix systems.
|
2017-06-01 21:59:11 -04:00
|
|
|
func MkdirAllWithACL(path string, perm os.FileMode, sddl string) error {
|
2019-08-08 05:51:00 -04:00
|
|
|
return os.MkdirAll(path, perm)
|
2016-11-04 15:42:21 -04:00
|
|
|
}
|
|
|
|
|
2015-07-28 12:13:12 -04: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 05:51:00 -04:00
|
|
|
func MkdirAll(path string, perm os.FileMode) error {
|
2015-04-23 18:55:36 -04:00
|
|
|
return os.MkdirAll(path, perm)
|
|
|
|
}
|