github.com/olljanat/moby@v1.13.1/pkg/idtools/idtools_windows.go (about)

     1  // +build windows
     2  
     3  package idtools
     4  
     5  import (
     6  	"os"
     7  
     8  	"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.
    13  func 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  }
    19  
    20  // CanAccess takes a valid (existing) directory and a uid, gid pair and determines
    21  // if that uid, gid pair has access (execute bit) to the directory
    22  // Windows does not require/support this function, so always return true
    23  func CanAccess(path string, uid, gid int) bool {
    24  	return true
    25  }