简体   繁体   中英

Dropbox last modification with Java API

I am writing a Dropbox console application. I need to find last modification for my account. I can get file metadata with date of last modification, like this:

DbxEntry.WithChildren listing = client.getMetadataWithChildren(path);
for (DbxEntry child : listing.children) {
    System.out.println("    " + child.name + ": " + child.toString());

}

But how can I find the latest modification for all of my folders?

The Dropbox API and the official Dropbox Java SDK don't expose a modified time for folders, but we'll consider it a feature request.

For files, you can access clientModified and serverModified on FileMetadata .

(Note that the code in your question uses the old, deprecated Java SDK, so you should switch to the new one .)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM