Skip to content

Commit 11353d2

Browse files
committed
fix: Windows only rmdir can delete junction
1 parent 3486737 commit 11353d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func FindSymbol(debugInfo, content string, clues []string) []string {
233233
func CreateJunction(location, destination string) error {
234234
switch runtime.GOOS {
235235
case "windows":
236-
exec.Command("cmd", "/C", "del", "/F", destination).Run()
236+
exec.Command("cmd", "/C", "rmdir", destination).Run()
237237
return exec.Command("cmd", "/C", "mklink", "/J", destination, location).Run()
238238
case "linux":
239239
return exec.Command("ln", "-F", "-s", location, destination).Run()

0 commit comments

Comments
 (0)