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