pkg/idtools: remove unused CanAccess() stub for Windows

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-10-05 15:19:01 +02:00
parent 3b9b5842b3
commit 1fccb39316
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -22,10 +22,3 @@ const (
func mkdirAs(path string, _ os.FileMode, _ Identity, _, _ bool) error {
return system.MkdirAll(path, 0)
}
// CanAccess takes a valid (existing) directory and a uid, gid pair and determines
// if that uid, gid pair has access (execute bit) to the directory
// Windows does not require/support this function, so always return true
func CanAccess(path string, identity Identity) bool {
return true
}