filer.backup: escape colon from path on windows

fix https://github.com/chrislusf/seaweedfs/issues/2084
This commit is contained in:
Chris Lu
2021-05-29 06:45:23 -07:00
parent ae185b997f
commit 2d7b4e5bb6
3 changed files with 32 additions and 10 deletions

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
}