OneDrive / onedrive-sdk-csharp

OneDrive SDK for C#! https://dev.onedrive.com
Other
294 stars 143 forks source link

How to tell if an item is a folder or a file #169

Closed ghost closed 8 years ago

ghost commented 8 years ago

I see no examples showing how to determine if an item returned in a list is a file or folder. How can i do this?

cdmayer commented 8 years ago

If item.File != null then you know it's a file.