From c7a71d35b0f4c94361f227396e12412e4333a2ba Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 14 May 2018 20:27:48 -0700 Subject: [PATCH] fix on pagination --- weed/server/filer_server_handlers_read.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.go index 93775f839..9d13757be 100644 --- a/weed/server/filer_server_handlers_read.go +++ b/weed/server/filer_server_handlers_read.go @@ -44,6 +44,10 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque path = "" } + if len(entries) > 0 { + lastFileName = entries[len(entries)-1].Name() + } + args := struct { Path string Entries interface{}