ARK-Builders / ARK-Navigator

Android app for navigation through your data
MIT License
15 stars 15 forks source link

Automatic root folders discovery and favorite folders persistence #221

Closed kirillt closed 2 years ago

kirillt commented 2 years ago

Right now, after installation of updates changing Room structure, folders can disappear. It would be nice to automatically find all existing ARK folders in the system right after installation. For this, it's possible to simply scan the whole filesystem for presence of hidden ARK files.

This won't help to restore favorite folders though. That's why we should also store information about favorites inside of root folders. Let's also re-organize hidden ARK files:

During first run after installation, we need to find all .ark folders in the filesystem and import them as roots. For each root folder, we need to extract favorite folders from .ark/favorites.