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