I am trying to fetch all the folders in Onedrive(not files) using graph api. I am looking for query similar to the below query:
var folders=await client.Me.Drive.Root.Children.Request().GetAsync();
The above query fetches both files and folders and I am looking for folders only.
Thanks in advance.
var folders = await client.Me.Drive.Root.Children.Request().GetAsync();
foreach (var item in folders)
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)