mirror of
https://github.com/rclone/rclone.git
synced 2025-07-11 14:30:44 +02:00
cmd: rclone selfupdate (#5080)
Implements self-update command Fixes #548 Fixes #5076
This commit is contained in:
11
cmd/selfupdate/writable_unix.go
Normal file
11
cmd/selfupdate/writable_unix.go
Normal file
@ -0,0 +1,11 @@
|
||||
// +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
|
||||
}
|
Reference in New Issue
Block a user