Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

251 B
Raw Blame
//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
}