filer.backup: escape colon from path on windows

fix https://github.com/chrislusf/seaweedfs/issues/2084
This commit is contained in:
Chris Lu committed 2021-05-29 06:45:27 -07:00
1 parent ae185b997f
commit 2d7b4e5bb6
3 files changed
+32 -10

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
package command
import (
"strings"
)
func escapeKey(key string) string {
if strings.Contains(key, ":") {
return strings.ReplaceAll(key, ":", "")
}
return key
}