dropbox / dropbox/dropbox-sdk-java

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

Ouverte
#324 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
627
Forks
463
Merge moyen
5 min
PR mergées (30 j)
10

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.