(owner *Root, root *os.Root, name string, info os.FileInfo)
| 13 | var errUnsupportedNonLinkReparse = errors.New("non-link reparse points cannot be safely opened beneath a rooted directory on Windows") |
| 14 | |
| 15 | func isPathRedirect(owner *Root, root *os.Root, name string, info os.FileInfo) (bool, error) { |
| 16 | return classifyWindowsPathRedirect(info, func() error { |
| 17 | _, err := owner.readlink(root, name) |
| 18 | return err |
| 19 | }) |
| 20 | } |
| 21 | |
| 22 | func classifyWindowsPathRedirect(info os.FileInfo, readlink func() error) (bool, error) { |
| 23 | if info.Mode()&os.ModeSymlink != 0 { |
nothing calls this directly
no test coverage detected