github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/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 {
    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, pair IDPair) bool {
    24  	return true
    25  }