How to distinguish files from folders?

In my custom code on the client, I’m using the Backendless.Files.listing API to fetch a folder content. In the result, how do I distinguish files from folders? The only difference I’m seeing is that there is no size property for folders. Is this the recommended way to distinguish them?

Regards,

Hello @Klaas_Klever,

That’s right, files have the size property and it’s fine to distinguish them from folders by it.

Regards,
Olha