Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

267 B
Raw Blame
package update

import "golang.org/x/sys/unix"

// readOnly reports whether path is on a read-only volume, as a mounted
// disk image is.
func readOnly(path string) bool {
	var st unix.Statfs_t
	return unix.Statfs(path, &st) == nil && st.Flags&unix.MNT_RDONLY != 0
}