mirror of
https://github.com/rclone/rclone.git
synced 2026-05-14 11:24:28 -04:00
drime: fix 500 errors when listing shared folders
When using the drime backend to access a folder shared from another Drime account (via root_folder_id config option), listing the folder's children fails with HTTP 500. This makes cross-account read-only mounts non-functional. This fixes the problem by changing listAll to use `folderId` instead of `parentIds[]` Fixes #9420
This commit is contained in:
@@ -588,7 +588,7 @@ func (f *Fs) listAll(ctx context.Context, dirID string, directoriesOnly bool, fi
|
||||
Parameters: url.Values{},
|
||||
}
|
||||
if dirID != "" {
|
||||
opts.Parameters.Add("parentIds", dirID)
|
||||
opts.Parameters.Add("folderId", dirID)
|
||||
}
|
||||
if directoriesOnly {
|
||||
opts.Parameters.Add("type", api.ItemTypeFolder)
|
||||
|
||||
Reference in New Issue
Block a user