2026-07-27 23:16:11 +08:00
|
|
|
//go:build windows
|
|
|
|
|
|
|
|
|
|
package files
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"io/fs"
|
|
|
|
|
"syscall"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func isReparsePoint(info fs.FileInfo) bool {
|
|
|
|
|
attributes, ok := info.Sys().(*syscall.Win32FileAttributeData)
|
|
|
|
|
return ok && attributes.FileAttributes&syscall.FILE_ATTRIBUTE_REPARSE_POINT != 0
|
|
|
|
|
}
|