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.
|
//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
|
|
}
|