Browse Source

Bug fixed in windows

pull/103/head
Unknown 11 years ago
parent
commit
8b307cf35e
  1. 7
      cmd/helper_windows.go

7
cmd/helper_windows.go

@ -25,9 +25,10 @@ func makeLink(srcPath, destPath string) error {
file, err := exec.LookPath("junction")
if err == nil {
path, _ := filepath.Abs(file)
cmd := exec.Command("cmd", "/c", "junction", destPath, srcPath)
return cmd.Run()
if com.IsFile(path) {
cmd := exec.Command("cmd", "/c", "junction", destPath, srcPath)
return cmd.Run()
}
}
}
os.RemoveAll(destPath)

Loading…
Cancel
Save