Skip to content
This repository was archived by the owner on Oct 17, 2022. It is now read-only.

Commit 315daef

Browse files
authored
Merge pull request #32 from topcheer/master
bugfix
2 parents 27e7067 + 103298e commit 315daef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

aliyun/api.go

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ func GetList(token string, driveId string, parentFileId string, marker ...string
4141
postData["fields"] = "*"
4242
postData["order_by"] = "updated_at"
4343
postData["order_direction"] = "DESC"
44+
//add marker post data
45+
if len(marker) > 0 {
46+
postData["marker"] = marker[0]
47+
}
4448

4549
data, err := json.Marshal(postData)
4650
if err != nil {

webdav/webdav.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,8 @@ func (h *Handler) handlePropfind(w http.ResponseWriter, r *http.Request) (status
779779
if len(list.Items) == 0 {
780780
fi = aliyun.GetFileDetail(h.Config.Token, h.Config.DriveId, value)
781781
} else {
782-
list, err = aliyun.GetList(h.Config.Token, h.Config.DriveId, "")
782+
//bugfix: use new local scope variable
783+
list, _ := aliyun.GetList(h.Config.Token, h.Config.DriveId, "")
783784
fi, _ = findUrl(strArr, h.Config.Token, h.Config.DriveId, list)
784785
}
785786
}

0 commit comments

Comments
 (0)