Search code examples
c#microsoft-graph-apionedrivedirectory-structure

Microsoft Graph API, Folder resource type


As per the Microsoft document

https://learn.microsoft.com/en-us/graph/api/resources/folder?view=graph-rest-1.0 ,

this Folder resource type has properties childCount and view.

Does the childCount include both files and folders count or only files/folders count?

If it returns both Files and Folders Count, Is there any way that I get only the files count?


Solution

  • childCount property on folder resource type includes both files and folders count.

    childCount = foldersCount + filesCount