mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f10c50958c
Migrating these functions to allow them being shared between moby, docker/cli,
and containerd, and to allow using them without importing all of sys / system,
which (in containerd) also depends on hcsshim and more.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 509f19f611
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
17 lines
522 B
Go
17 lines
522 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package system // import "github.com/docker/docker/pkg/system"
|
|
|
|
import "os"
|
|
|
|
// MkdirAllWithACL is a wrapper for os.MkdirAll on unix systems.
|
|
func MkdirAllWithACL(path string, perm os.FileMode, sddl string) error {
|
|
return os.MkdirAll(path, perm)
|
|
}
|
|
|
|
// MkdirAll creates a directory named path along with any necessary parents,
|
|
// with permission specified by attribute perm for all dir created.
|
|
func MkdirAll(path string, perm os.FileMode) error {
|
|
return os.MkdirAll(path, perm)
|
|
}
|