cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

How do get server modified date and time for a file in java using dropbox sdk, wat are sdk methods

How do get server modified date and time for a file in java using dropbox sdk, wat are sdk methods

sanjeev_hansanur
Explorer | Level 4

Actually we are implement Incremental Crawl or Change log Crawl algorithm in java using sdk. 

 

we want know how to get the modified date and time for file .is there any sdk method for that or is any alternative way to get the modified date and time?

1 Reply 1

Greg-DB
Dropbox Staff

When using the Dropbox API v2 Java SDK, you can get the server and client modified date/time for a file from FileMetadata.getServerModified() and FileMetadata.getClientModified(), respectively. You can get FileMetadata objects from various methods, such as from getMetadata or listFolder/listFolderContinue.
 
When uploading files you can set the client modified date/time using UploadBuilder.withClientModified. It's not possible to override the serverModified date/time though.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?