We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245cace commit cc37dc7Copy full SHA for cc37dc7
path/winbug.go
@@ -48,7 +48,7 @@ func CustomRename(o, n string) error {
48
// Handking windows cases first
49
if runtime.GOOS == "windows" {
50
msg.Debug("Detected Windows. Moving files using windows command")
51
- cmd := exec.Command("cmd.exe", "/c", "move", o, n)
+ cmd := exec.Command("cmd.exe", "/c", "xcopy /s/y", o, n+"\\")
52
output, err := cmd.CombinedOutput()
53
if err != nil {
54
return fmt.Errorf("Error moving files: %s. output: %s", err, output)
0 commit comments