简体   繁体   English

Dropbox使用Java API的最后修改

[英]Dropbox last modification with Java API

I am writing a Dropbox console application. 我正在编写一个Dropbox控制台应用程序。 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. Dropbox API和官方的Dropbox Java SDK并未公开修改文件夹的时间,但我们会将其视为功能请求。

For files, you can access clientModified and serverModified on FileMetadata . 对于文件,您可以访问clientModifiedserverModifiedFileMetadata

(Note that the code in your question uses the old, deprecated Java SDK, so you should switch to the new one .) (请注意,问题中的代码使用了已淘汰的旧Java SDK,因此您应该切换到新的 Java SDK。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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