dropbox / dropbox/dropbox-sdk-java
listFolderLongpoll().changes return true when changes in any folder, not in specified folder
未关闭
- 主要语言
- Java
- 星标
- 627
- 派生
- 463
- 平均合并
- 5 分钟
- 30 天内合并 PR
- 10
描述
``` kotlin
fun getDir(path: String) {
var result = client.files().listFolderBuilder(path)
.withLimit(500)
.withIncludeDeleted(true)
.withRecursive(false)
.start()
while (true) {
if (!result.hasMore) {
startLongPoll(result.cursor)
break
}
result = client.files().listFolderContinue(cursor)
}
}
fun startLongPoll(cursor: String) {
client.files().listFolderLongpoll(cursor, 30).changes // returns true if any changes in account, not in path specified with listFolderBuilder(path)
}
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。