Browse Source

url should be always using forward slash

pull/2613/head
chrislu 3 years ago
parent
commit
b3e526ba95
  1. 2
      weed/command/filer_copy.go

2
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
}

Loading…
Cancel
Save