handle cross-device linking in windows
This commit is contained in:
1 parent
e2bf773f3b
commit
bc2a80fd6e
3 files changed
+10
-2
No files matched your search
@@ -119,6 +119,10 @@ func isHidden(f os.FileInfo, path string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func errCrossDevice(err error) bool {
|
||||
return err.(*os.LinkError).Err.(syscall.Errno) == 17
|
||||
}
|
||||
|
||||
func exportFiles(f string, fs []string) {
|
||||
envFile := fmt.Sprintf(`"%s"`, f)
|
||||
|
||||
|
||||
Reference in new issue
Block a user