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:
Nick Craig-Wood 2021-10-31 16:13:39 +00:00
parent e77dcb7f52
commit f85e3209b3

View File

@ -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