Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save last cursor to config file #1

Open
derhofbauer opened this issue Dec 11, 2017 · 1 comment
Open

Save last cursor to config file #1

derhofbauer opened this issue Dec 11, 2017 · 1 comment

Comments

@derhofbauer
Copy link
Owner

derhofbauer commented Dec 11, 2017

Since, in theory, filesListFolderContinue gives as all changes since since the last cursor, we should store this cursor persistently.

This can be used to start downloading files while local files are indexed and a new file list is fetched from the server. In this scenario files can only be downloaded when the local file has already been indexed or does not exist.

The procedure works even when we start syncing both ways.


For one-way sync we just need to store the last cursor and on restart fetch all changes since this cursor and produce them in our file system. We do not need a complete file list. It might be safer though, to fetch one on startup and then produce the changes based on this file list.

@derhofbauer
Copy link
Owner Author

This is in fact fixed already, but kept open for note purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant