mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
133d33ade8
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
11 lines
188 B
Go
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
|
|
}
|