An import is put in place while the app is closed, so no file is ever replaced under the app while it uses it.
01 · The steps
- Open and check. The app opens the file with your password, piece by piece, and checks every piece. Nothing of the app is touched yet.
- Lay it out. The content is written into a folder of its own beside the app’s data. Only when the whole file has been read and checked is it marked ready.
- Close the app. The app starts a small screen of its own, in a separate process, and closes itself.
- Wait. That screen, Putting the import in place…, waits until the app is fully closed.
- Replace. It removes everything the app held, moves the file’s content into its place, writes the settings back and seals every sign-in again with this phone’s key.
- Start. It removes the folder it worked from and opens the app on the new state.
02 · If it is interrupted
- Before the file is marked ready, an interruption leaves the app as it was; the next import starts over from the file.
- Once it is marked ready, the import is finished at the next opening of the app: the app sees it waiting, closes, and the same screen puts it in place first.