1
mirror of https://github.com/rclone/rclone synced 2025-03-24 07:04:23 +01:00
rclone/cmd/selfupdate/writable_unix.go

13 lines
192 B
Go
Raw Normal View History

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