|
|
@ -25,11 +25,12 @@ 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) |
|
|
|
|
|
|
|
|
|
|
|
err := com.CopyDir(srcPath, destPath) |
|
|
|
err := com.CopyDir(srcPath, destPath) |
|
|
|