dropbox / dropbox/dropbox-sdk-java

listFolderLongpoll().changes return true when changes in any folder, not in specified folder

Đang mở
#324 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
627
Fork
463
Merge trung bình
5 phút
Pull request đã merge (30 ngày)
10

Mô tả

``` 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)
}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.