1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-16 00:04:40 +00:00

box: fix about after change in API return - fixes #8776

This commit is contained in:
Nick Craig-Wood
2025-08-26 09:39:49 +01:00
parent bc3e8e1abd
commit 50d7a80331

View File

@@ -125,10 +125,21 @@ type FolderItems struct {
Offset int `json:"offset"` Offset int `json:"offset"`
Limit int `json:"limit"` Limit int `json:"limit"`
NextMarker *string `json:"next_marker,omitempty"` NextMarker *string `json:"next_marker,omitempty"`
Order []struct { // There is some confusion about how this is actually
By string `json:"by"` // returned. The []struct has worked for many years, but in
Direction string `json:"direction"` // https://github.com/rclone/rclone/issues/8776 box was
} `json:"order"` // returning it returned not as a list. We don't actually use
// this so comment it out.
//
// Order struct {
// By string `json:"by"`
// Direction string `json:"direction"`
// } `json:"order"`
//
// Order []struct {
// By string `json:"by"`
// Direction string `json:"direction"`
// } `json:"order"`
} }
// Parent defined the ID of the parent directory // Parent defined the ID of the parent directory