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") file, err := exec.LookPath("junction")
if err == nil { if err == nil {
path, _ := filepath.Abs(file) path, _ := filepath.Abs(file)
if com.IsFile(path) {
cmd := exec.Command("cmd", "/c", "junction", destPath, srcPath) cmd := exec.Command("cmd", "/c", "junction", destPath, srcPath)
return cmd.Run() return cmd.Run()
}
} }
} }
os.RemoveAll(destPath) os.RemoveAll(destPath)

Loading…
Cancel
Save