mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 10:23:16 +08:00
premiumizeme: fix directory listing after API changes
The API doesn't seem to accept a value of "0" any more for the root directory ID, giving the error "Could not decode folder id". However omitting it seems to work fine.
This commit is contained in:
parent
e77dcb7f52
commit
f85e3209b3
|
@ -401,7 +401,9 @@ func (f *Fs) listAll(ctx context.Context, dirID string, directoriesOnly bool, fi
|
|||
Path: "/folder/list",
|
||||
Parameters: f.baseParams(),
|
||||
}
|
||||
opts.Parameters.Set("id", dirID)
|
||||
if dirID != rootID {
|
||||
opts.Parameters.Set("id", dirID)
|
||||
}
|
||||
opts.Parameters.Set("includebreadcrumbs", "false")
|
||||
|
||||
var result api.FolderListResponse
|
||||
|
|
Loading…
Reference in New Issue
Block a user