1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-13 20:38:12 +02:00
rclone/cmd/selfupdate/writable_unix.go
2021-09-09 20:43:59 +03:00

13 lines
236 B
Go

//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
}