diff --git a/lib/http/websockets.go b/lib/http/websockets.go index c2b822af..19c8aeb5 100644 --- a/lib/http/websockets.go +++ b/lib/http/websockets.go @@ -329,6 +329,9 @@ func search(c *fb.Context, w http.ResponseWriter, r *http.Request) (int, error) return nil } } + if f.IsDir() { + originalPath = originalPath + "/" + } response, _ := json.Marshal(map[string]interface{}{ "dir": f.IsDir(),