aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filer.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-05 13:11:43 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-05 13:11:43 -0700
commit91da7057b1e4e0a623e2c2d273cce4a1426e69c1 (patch)
tree75bdd6b586bc4c23dfc567461e16d5c2d4583e21 /weed/filer2/filer.go
parent2d43f85577cb998656abf2525445b72fcd8cc48d (diff)
downloadseaweedfs-91da7057b1e4e0a623e2c2d273cce4a1426e69c1.tar.xz
seaweedfs-91da7057b1e4e0a623e2c2d273cce4a1426e69c1.zip
refactoring
Diffstat (limited to 'weed/filer2/filer.go')
-rw-r--r--weed/filer2/filer.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go
index a2689f39f..af17bf56c 100644
--- a/weed/filer2/filer.go
+++ b/weed/filer2/filer.go
@@ -4,7 +4,6 @@ import (
"context"
"fmt"
"os"
- "path/filepath"
"strings"
"time"
@@ -94,7 +93,7 @@ func (f *Filer) CreateEntry(ctx context.Context, entry *Entry, o_excl bool) erro
var lastDirectoryEntry *Entry
for i := 1; i < len(dirParts); i++ {
- dirPath := "/" + filepath.ToSlash(filepath.Join(dirParts[:i]...))
+ dirPath := "/" + util.Join(dirParts[:i]...)
// fmt.Printf("%d directory: %+v\n", i, dirPath)
// first check local cache