- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isLinkPath (0.08 sec)
-
pkg/volume/util/subpath/subpath_windows.go
upperpath := strings.TrimSuffix(path, sep) return filepath.Dir(upperpath) } // Check whether a directory/file is a link type or not // LinkType could be SymbolicLink, Junction, or HardLink func isLinkPath(path string) (bool, error) { cmd := exec.Command("powershell", "/c", "$ErrorActionPreference = 'Stop'; (Get-Item -Force -LiteralPath $env:linkpath).LinkType") cmd.Env = append(os.Environ(), fmt.Sprintf("linkpath=%s", path))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 12:57:11 UTC 2023 - 12.5K bytes - Viewed (0)