github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/pkg/idtools/idtools_windows.go (about)

     1  package idtools // import "github.com/docker/docker/pkg/idtools"
     2  
     3  import (
     4  	"os"
     5  
     6  	"github.com/docker/docker/pkg/system"
     7  )
     8  
     9  // Platforms such as Windows do not support the UID/GID concept. So make this
    10  // just a wrapper around system.MkdirAll.
    11  func mkdirAs(path string, mode os.FileMode, ownerUID, ownerGID int, mkAll, chownExisting bool) error {
    12  	if err := system.MkdirAll(path, mode, ""); err != nil {
    13  		return err
    14  	}
    15  	return nil
    16  }
    17  
    18  // CanAccess takes a valid (existing) directory and a uid, gid pair and determines
    19  // if that uid, gid pair has access (execute bit) to the directory
    20  // Windows does not require/support this function, so always return true
    21  func CanAccess(path string, pair IDPair) bool {
    22  	return true
    23  }