Forum Discussion

SparkyNZ's avatar
SparkyNZ
Helpful | Level 5
8 years ago

Listing subfolders with Java api v2

I am using code such as the snippet below to retrieve file details from Dropbox. How can I tell which entries are folders?

 

I thought there would have been a member in FileMetadata but I am just not seeing it.

 

ListFolderResult result = mDbxClient.files().listFolder("" );

while( true )
{
for( Metadata metadata : result.getEntries() )
{
String sName = metadata.getPathLower();
FileMetadata fileMetadata = (FileMetadata) metadata;

 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 9 hours ago
350 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!