refactor(cli): rename operator command to tht
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
//go:build windows
|
||||
|
||||
package testsupport
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
func isSymlinkPrivilegeUnavailable(err error) bool {
|
||||
return errors.Is(err, os.ErrPermission) || errors.Is(err, windows.ERROR_PRIVILEGE_NOT_HELD)
|
||||
}
|
||||
Reference in New Issue
Block a user