mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
box: make listings of heavily used directories more reliable #5545
Before this change we uses limit/offset paging for directories in the main directory listing routine and in the trash cleanup listing. This switches to the new scheme of limit/marker which is more reliable on a directory which is continuously changing. It has the disadvantage that it doesn't tell us the total number of items available, however that wasn't information rclone uses.
This commit is contained in:
@@ -103,10 +103,11 @@ func (i *Item) ModTime() (t time.Time) {
|
||||
|
||||
// FolderItems is returned from the GetFolderItems call
|
||||
type FolderItems struct {
|
||||
TotalCount int `json:"total_count"`
|
||||
Entries []Item `json:"entries"`
|
||||
Offset int `json:"offset"`
|
||||
Limit int `json:"limit"`
|
||||
TotalCount int `json:"total_count"`
|
||||
Entries []Item `json:"entries"`
|
||||
Offset int `json:"offset"`
|
||||
Limit int `json:"limit"`
|
||||
NextMarker *string `json:"next_marker,omitempty"`
|
||||
Order []struct {
|
||||
By string `json:"by"`
|
||||
Direction string `json:"direction"`
|
||||
|
||||
Reference in New Issue
Block a user