Files
tsgo/internal/nativepath/symlink_other.go
133d33ade8 Fix watches on symlinked directories (#4376)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-06-22 18:05:00 +00:00

11 lines
188 B
Go

//go:build !windows
package nativepath
import "os"
func IsSymlinkOrReparsePoint(path string) bool {
info, err := os.Lstat(path)
return err == nil && info.Mode()&os.ModeSymlink != 0
}