You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buildx/vendor/github.com/in-toto/in-toto-golang/in_toto/util_unix.go

15 lines
242 B
Go

//go:build linux || darwin || !windows
// +build linux darwin !windows
package in_toto
import "golang.org/x/sys/unix"
func isWritable(path string) error {
err := unix.Access(path, unix.W_OK)
if err != nil {
return err
}
return nil
}