aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filer.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer2/filer.go')
-rw-r--r--weed/filer2/filer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go
index 672c6201c..eae1107ca 100644
--- a/weed/filer2/filer.go
+++ b/weed/filer2/filer.go
@@ -70,7 +70,7 @@ func (f *Filer) CreateEntry(entry *Entry) error {
var lastDirectoryEntry *Entry
for i := 1; i < len(dirParts); i++ {
- dirPath := "/" + filepath.Join(dirParts[:i]...)
+ dirPath := "/" + filepath.ToSlash(filepath.Join(dirParts[:i]...))
// fmt.Printf("%d directory: %+v\n", i, dirPath)
// first check local cache