Skip to content

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

485 B
Raw Blame
package edit

import (
	"os"

	"golang.org/x/sys/windows"
)

// hardLinked reports whether the file at path has other names too.
func hardLinked(path string) bool {
	f, err := os.Open(path)
	if err != nil {
		return false
	}
	defer f.Close()
	var fi windows.ByHandleFileInformation
	return windows.GetFileInformationByHandle(windows.Handle(f.Fd()), &fi) == nil && fi.NumberOfLinks > 1
}

// keepGroup: Windows files have no Unix group to keep.
func keepGroup(*os.File, os.FileInfo) {}