ginatrapani/todo.txt-touch-ios — pull request #122 by chuckbjones (2012-02-26 07:48:05+00:00)
Title: Added archive function and syncing of done.txt file.

Fixes #107. I think this is finally done. Hopefully it all works. ;)

Both todo and done files are downloaded/uploaded only when they have changed. After pushing todo.txt, we check if done.txt has been modified in Dropbox and, if so, pull it so that we remain in sync. Also, both files are checked for conflicts before either is pushed, avoiding the issue where one file gets uploaded and the other doesn't.

Another big change was made separate from archiving, but necessary in order to make archiving work efficiently. Previously, the todo file was read from disk into memory before every screen load and before every operation. Now, we check if the file has been modified before reloading. Hopefully this will fix the lag issues that people with large todo files were experiencing.