premiumizeme: fix server side directory move after API changes

Apparently moving a directory using the id "0" as the root no longer
works, so this reads the real root ID when it is listed and uses that.

This fixes the DirMove problem.

See: https://forum.rclone.org/t/premiumize-cant-move-files/27169
See: #5734
This commit is contained in:
Nick Craig-Wood
2021-10-31 19:18:55 +00:00
parent 07fcba888c
commit f7764a0c9d
2 changed files with 16 additions and 8 deletions
+1
View File
@@ -58,6 +58,7 @@ type FolderListResponse struct {
Content []Item `json:"content"`
Name string `json:"name,omitempty"`
ParentID string `json:"parent_id,omitempty"`
FolderID string `json:"folder_id,omitempty"`
}
// FolderCreateResponse is the response to folder/create