dropbox / dropbox/dropbox-sdk-java
listFolderLongpoll().changes return true when changes in any folder, not in specified folder
- Lingua principale
- Java
- Stelle
- 627
- Fork
- 463
- Merge medio
- 5m
- PR unite (30g)
- 10
Descrizione
``` 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)
}
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.