mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 06:23:36 +08:00
fix breadcrumb
This commit is contained in:
@@ -13,6 +13,9 @@ type Breadcrumb struct {
|
||||
|
||||
func ToBreadcrumb(fullpath string) (crumbs []Breadcrumb) {
|
||||
parts := strings.Split(fullpath, "/")
|
||||
if fullpath == "/" {
|
||||
parts = []string{""}
|
||||
}
|
||||
|
||||
for i := 0; i < len(parts); i++ {
|
||||
name := parts[i]
|
||||
|
Reference in New Issue
Block a user