cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Java V2 SDK - get metadata

Java V2 SDK - get metadata

Dennis T.6
New member | Level 2

Using Java SDK v2, I need to get metadata for a file or all files in a directory. Specifically the client modified timestamp.

I cannot find this anywhere in the V2 docs, specifically the DbxFiles.Metadata class only contains name, pathLower and parentSharedFolderId.

How is this done?

2 Replies 2

Re: Java V2 SDK - get metadata

Steve M.
Dropboxer

You can downcast to DbxFiles.FileMetadata, which has a clientModified field. (Of course this only works if the thing you got metadata for is in fact a file. A folder will return DbxFiles.FolderMetadata instead, and deleted items will return DbxFiles.DeletedMetadata.)

Re: Java V2 SDK - get metadata

Dennis T.6
New member | Level 2

Thanks.

 

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Dennis T.6 New member | Level 2
  • User avatar
    Steve M. Dropboxer
What do Dropbox user levels mean?
Need more support?