mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 14:39:24 +08:00
17 lines
251 B
Go
17 lines
251 B
Go
//go:build windows && !noselfupdate
|
|
|
|
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
|
|
}
|