mirror of https://github.com/pulumi/pulumi.git
17 lines
439 B
Go
17 lines
439 B
Go
package python
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
// Check if file supports reparse point in windows.
|
|
// This is to trigger a workaround for https://github.com/golang/go/issues/42919
|
|
func isReparsePoint(info os.FileInfo) bool {
|
|
if sys, ok := info.Sys().(*syscall.Win32FileAttributeData); ok {
|
|
return sys.FileAttributes&syscall.FILE_ATTRIBUTE_REPARSE_POINT != 0 &&
|
|
sys.FileAttributes&syscall.FILE_ATTRIBUTE_ARCHIVE != 0
|
|
}
|
|
return false
|
|
}
|