My problem is: if I call https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root/children
all I get are the top-level items of that drive.
How can I achieve to get all the subfolders and files of the drive?
There's no endpoint to get all items in a drive with every file from every subfolder at once.
Below endpoint maps to a test library MyDoc3.
/sites/siteid/drives/{drive-id}
Then, below endpoint use to get children of FolderA
in MyDoc3.
/sites/siteid/drives/{drive-id}/root:/FolderA:/children
I found that the below endpoint retrieves all files and folders in a library. The result will be paged, with a standard page size of 200 items.
/drives/{drive-id}/list/items
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.