mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-06 12:07:51 +01:00
filer.backup: escape colon from path on windows
fix https://github.com/chrislusf/seaweedfs/issues/2084
This commit is contained in:
1 parent
ae185b997f
commit
2d7b4e5bb6
3 files changed
+32
-10
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func escapeKey(key string) string {
|
||||
if strings.Contains(key, ":") {
|
||||
return strings.ReplaceAll(key, ":", "")
|
||||
}
|
||||
return key
|
||||
}
|
||||
Reference in new issue
Block a user