diff options
| author | chrislu <chris.lu@gmail.com> | 2022-01-19 22:16:26 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-01-19 22:16:26 -0800 |
| commit | b3e526ba95d2dfa40e4703e22fc3ad3e414adbde (patch) | |
| tree | 9ffb4b324399cfe2e6ecb4b6bf992d2abd857e22 /weed/command/filer_copy.go | |
| parent | 30b7e03920f741f6e610ea916bb8bcaee7d1aaf2 (diff) | |
| download | seaweedfs-b3e526ba95d2dfa40e4703e22fc3ad3e414adbde.tar.xz seaweedfs-b3e526ba95d2dfa40e4703e22fc3ad3e414adbde.zip | |
url should be always using forward slash
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 185a1d0ff..06bb82319 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -212,7 +212,7 @@ func genFileCopyTask(fileOrDir string, destPath string, fileCopyTaskChan chan Fi if mode.IsDir() { files, _ := os.ReadDir(fileOrDir) for _, subFileOrDir := range files { - cleanedDestDirectory := filepath.Clean(destPath + fi.Name()) + cleanedDestDirectory := destPath + fi.Name() if err = genFileCopyTask(fileOrDir+"/"+subFileOrDir.Name(), cleanedDestDirectory+"/", fileCopyTaskChan); err != nil { return err } |
