1
mirror of https://github.com/rclone/rclone synced 2025-04-03 21:05:31 +02:00
rclone/cmd/selfupdate/writable_unix.go
Ivan Andreev 6fa74340a0
cmd: rclone selfupdate ()
Implements self-update command
Fixes 
Fixes 
2021-03-11 22:39:30 +03:00

12 lines
168 B
Go

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