diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-03-04 13:00:08 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-03-04 13:00:08 -0800 |
| commit | d312c55bbed8ef69dc11bf024024c7b50f56f5b2 (patch) | |
| tree | 54a351f73338c4f9ad1b03579ea9c4506e276bbd /weed/filer2/filer.go | |
| parent | f9dcf56465837b210e0b60a6b3a3c929c66c1f6b (diff) | |
| download | seaweedfs-d312c55bbed8ef69dc11bf024024c7b50f56f5b2.tar.xz seaweedfs-d312c55bbed8ef69dc11bf024024c7b50f56f5b2.zip | |
file path supports windows, avoiding back slashes
fix https://github.com/chrislusf/seaweedfs/issues/868
Diffstat (limited to 'weed/filer2/filer.go')
| -rw-r--r-- | weed/filer2/filer.go | 2 |
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 |
