mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 22:27:56 +08:00
url should be always using forward slash
This commit is contained in:
@@ -212,7 +212,7 @@ func genFileCopyTask(fileOrDir string, destPath string, fileCopyTaskChan chan Fi
|
|||||||
if mode.IsDir() {
|
if mode.IsDir() {
|
||||||
files, _ := os.ReadDir(fileOrDir)
|
files, _ := os.ReadDir(fileOrDir)
|
||||||
for _, subFileOrDir := range files {
|
for _, subFileOrDir := range files {
|
||||||
cleanedDestDirectory := filepath.Clean(destPath + fi.Name())
|
cleanedDestDirectory := destPath + fi.Name()
|
||||||
if err = genFileCopyTask(fileOrDir+"/"+subFileOrDir.Name(), cleanedDestDirectory+"/", fileCopyTaskChan); err != nil {
|
if err = genFileCopyTask(fileOrDir+"/"+subFileOrDir.Name(), cleanedDestDirectory+"/", fileCopyTaskChan); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user