rclone/cmd/selfupdate/writable_unix.go

12 lines
168 B
Go
Raw Normal View History

// +build !windows,!plan9,!js
package selfupdate
import (
"golang.org/x/sys/unix"
)
func writable(path string) bool {
return unix.Access(path, unix.W_OK) == nil
}