Hello,
I need to distunguish, if Metadata I got is file or folder. Is there any recommended way, how to do this? I came up just with using instanceof operator, here is a snippet from integration tests:
final Metadata fileMetadata = client.files().getMetadata(destFile);
assertTrue(fileMetadata instanceof FileMetadata);
final Metadata folderMetadata = client.files().getMetadata(destFolder);
assertTrue(folderMetadata instanceof FolderMetadata);
Is there any recomended way?
Thank you,
Michal