From cc37dc711a3191c2b91b01b9593c685660eeb9af Mon Sep 17 00:00:00 2001 From: Ticore Shih Date: Mon, 31 Jul 2017 14:46:22 +0800 Subject: [PATCH] Fix error: Unable to export dependencies to vendor directory: Error moving files: exit status 1. output: Access is denied. 0 dir(s) moved. --- path/winbug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/path/winbug.go b/path/winbug.go index 557f8191..f2e35343 100644 --- a/path/winbug.go +++ b/path/winbug.go @@ -48,7 +48,7 @@ func CustomRename(o, n string) error { // Handking windows cases first if runtime.GOOS == "windows" { msg.Debug("Detected Windows. Moving files using windows command") - cmd := exec.Command("cmd.exe", "/c", "move", o, n) + cmd := exec.Command("cmd.exe", "/c", "xcopy /s/y", o, n+"\\") output, err := cmd.CombinedOutput() if err != nil { return fmt.Errorf("Error moving files: %s. output: %s", err, output)