]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_windows.go
provider: Ensured Go 1.11 in TravisCI and README
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / fsouza / go-dockerclient / external / github.com / docker / docker / pkg / idtools / idtools_windows.go
CommitLineData
9b12e4fe
JC
1// +build windows
2
3package idtools
4
5import (
6 "os"
7
8 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
9)
10
11// Platforms such as Windows do not support the UID/GID concept. So make this
12// just a wrapper around system.MkdirAll.
13func mkdirAs(path string, mode os.FileMode, ownerUID, ownerGID int, mkAll, chownExisting bool) error {
14 if err := system.MkdirAll(path, mode); err != nil && !os.IsExist(err) {
15 return err
16 }
17 return nil
18}