From a889ade3f43bdbdda0d4c57cecea49a47cd2d893 Mon Sep 17 00:00:00 2001 From: WillyDolly Date: Sun, 23 Sep 2018 17:13:52 +0700 Subject: [PATCH] Update winbug.go --- path/winbug.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/path/winbug.go b/path/winbug.go index ddb423b4..8a6c852e 100644 --- a/path/winbug.go +++ b/path/winbug.go @@ -72,10 +72,10 @@ 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) + return fmt.Errorf("Error moving my files: %s. output: %s", err, output) } return nil