2021-03-11 20:39:30 +01:00
|
|
|
// +build !windows,!plan9,!js
|
2021-04-03 13:39:04 +02:00
|
|
|
// +build !noselfupdate
|
2021-03-11 20:39:30 +01:00
|
|
|
|
|
|
|
package selfupdate
|
|
|
|
|
|
|
|
import (
|
|
|
|
"golang.org/x/sys/unix"
|
|
|
|
)
|
|
|
|
|
|
|
|
func writable(path string) bool {
|
|
|
|
return unix.Access(path, unix.W_OK) == nil
|
|
|
|
}
|