rclone/cmd/selfupdate/writable_unix.go

13 lines
236 B
Go
Raw Normal View History

2021-09-09 12:25:25 +00:00
//go:build !windows && !plan9 && !js && !noselfupdate
// +build !windows,!plan9,!js,!noselfupdate
package selfupdate
import (
"golang.org/x/sys/unix"
)
func writable(path string) bool {
return unix.Access(path, unix.W_OK) == nil
}