github.com/lacework-dev/go-moby@v20.10.12+incompatible/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  // This is currently a wrapper around MkdirAll, however, since currently
    10  // permissions aren't set through this path, the identity isn't utilized.
    11  // Ownership is handled elsewhere, but in the future could be support here
    12  // too.
    13  func mkdirAs(path string, mode os.FileMode, owner Identity, 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, identity Identity) bool {
    24  	return true
    25  }