vendor tsgo
This commit is contained in:
10
tools/tsgo/internal/nativepath/symlink_other.go
Normal file
10
tools/tsgo/internal/nativepath/symlink_other.go
Normal file
@@ -0,0 +1,10 @@
|
||||
//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
|
||||
}
|
||||
Reference in New Issue
Block a user