mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01:00
6fa74340a0
Implements self-update command Fixes #548 Fixes #5076
17 lines
233 B
Go
17 lines
233 B
Go
// +build windows
|
|
|
|
package selfupdate
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func writable(path string) bool {
|
|
info, err := os.Stat(path)
|
|
const UserWritableBit = 128
|
|
if err == nil {
|
|
return info.Mode().Perm()&UserWritableBit != 0
|
|
}
|
|
return false
|
|
}
|